/* Login Container */
.login-container {
  min-height: calc(100vh - 60px);
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--background));
}

/* Login Card */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary));
  border-radius: calc(var(--radius) * 2);
  transition: background-color 0.3s ease;
}

.logo-circle i,
.logo-circle svg {
  width: 32px;
  height: 32px;
  color: hsl(var(--primary-foreground)) !important;
  stroke: hsl(var(--primary-foreground)) !important;
}

.login-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  transition: color 0.3s ease;
}

.login-header p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  transition: color 0.3s ease;
}

/* Form */
.login-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.form-group label i {
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.input-wrapper input::placeholder {
  color: hsl(var(--muted-foreground));
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: hsl(var(--foreground));
}

.toggle-password i {
  width: 18px;
  height: 18px;
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  color: hsl(var(--destructive));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.error-message i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: hsl(var(--primary));
  border: none;
  border-radius: var(--radius);
  color: hsl(var(--primary-foreground));
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login i {
  width: 18px;
  height: 18px;
}

/* Login Footer */
.login-footer {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary));
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.hint i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
}

.hint code {
  background: hsl(var(--accent));
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: "Courier New", monospace;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  justify-content: center;
}

.back-link:hover {
  color: hsl(var(--foreground));
}

.back-link i {
  width: 16px;
  height: 16px;
}

/* Shake Animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 640px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }
}
