/* Login Page Styles */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.login-body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-card {
  background-color: hsl(var(--card));
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.login-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Alert */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.alert-error {
  background-color: hsl(0 84.2% 60.2% / 0.1);
  border: 1px solid hsl(0 84.2% 60.2% / 0.2);
  color: hsl(var(--destructive));
}

.alert svg {
  flex-shrink: 0;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.login-form .input {
  height: 42px;
  font-size: 0.9375rem;
  padding: 0 0.875rem;
}

/* Password Input */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.375rem;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s ease;
}

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

/* Submit Button */
.btn-full {
  width: 100%;
  height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Focus states */
.login-form .input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.15);
}

/* Header user email (shared with main app) */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

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

  .login-logo img {
    width: 56px;
    height: 56px;
  }

  .login-title {
    font-size: 1.25rem;
  }
}
