/* ========================================
   Auth Pages Styles
   ======================================== */

.navbar-minimal {
  background-color: transparent;
  border-bottom: none;
}

.navbar-minimal .promo-banner {
  display: none;
}

/* Logo Styles (matching landing page) */
.navbar-minimal .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-minimal .logo-icon {
  height: 28px;
  width: auto;
}

.navbar-minimal .logo-icon-light { display: block; }
.navbar-minimal .logo-icon-dark { display: none; }
.dark .navbar-minimal .logo-icon-light { display: none; }
.dark .navbar-minimal .logo-icon-dark { display: block; }

.navbar-minimal .logo-text {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  color: hsl(var(--foreground));
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.auth-main::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, hsl(var(--accent-purple) / 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 26rem;
}

.auth-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.dark .auth-card {
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(16px);
}

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

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.auth-header p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: hsl(var(--border));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

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

.form-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.password-input-wrapper {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

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

.password-toggle .eye-off-icon {
  display: none;
}

.password-toggle.active .eye-icon {
  display: none;
}

.password-toggle.active .eye-off-icon {
  display: block;
}

/* Checkbox styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.25rem;
  background-color: hsl(var(--background));
  transition: all 0.2s ease;
  position: relative;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid hsl(var(--primary-foreground));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.auth-link {
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.auth-link:hover {
  opacity: 0.8;
}

/* Auth Icon */
.auth-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-icon svg {
  color: hsl(var(--primary));
  opacity: 0.9;
}

.auth-icon-success svg {
  color: hsl(142 76% 36%);
}

/* Email Display */
.email-display {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
}

/* OTP Input Styles */
.otp-input-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.otp-input {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid hsl(var(--border));
  border-radius: 0.75rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

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

.otp-input:hover {
  border-color: hsl(var(--border) / 0.8);
}

/* Success Message */
.success-message {
  background-color: hsl(142 76% 36% / 0.1);
  border: 1px solid hsl(142 76% 36% / 0.3);
  color: hsl(142 76% 36%);
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.dark .success-message {
  background-color: hsl(142 76% 36% / 0.15);
  border-color: hsl(142 76% 36% / 0.3);
}

/* Error Message */
.error-message {
  background-color: hsl(0 84% 60% / 0.1);
  border: 1px solid hsl(0 84% 60% / 0.3);
  color: hsl(0 84% 60%);
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.dark .error-message {
  background-color: hsl(0 84% 60% / 0.15);
  border-color: hsl(0 84% 60% / 0.3);
}

/* Password Strength Indicator */
.password-strength {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background-color: hsl(var(--border));
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 5rem;
}

/* Resend Section */
.resend-section {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.resend-section p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.btn-text-link {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.btn-text-link:hover {
  opacity: 0.8;
}

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

/* Loading Spinner */
.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Turnstile Container */
.turnstile-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  min-height: 65px; /* Prevent layout shift */
}
