/*
  Admin Dashboard — Area Square Feet
  Login & 2-Step Authentication Styles
  Theme: White / Light (Modern SaaS)
  Version: 1.0
*/

/* =============================================
   1. DESIGN TOKENS
   ============================================= */
:root {
  /* Primary Palette */
  --admin-primary: #E96E28;
  --admin-primary-dark: #cf5b1b;
  --admin-primary-light: #f18a4f;
  --admin-primary-lighter: #fcd3bd;
  --admin-primary-ghost: #fdf5f0;
  
  /* Secondary / Accent */
  --admin-secondary: #ff8c42;
  --admin-accent: #ea580c;
  --admin-accent-light: #fef3c7;
  
  /* Gradient */
  --admin-gradient: linear-gradient(135deg, #E96E28 0%, #ff8c42 50%, #fcd3bd 100%);
  --admin-gradient-2: linear-gradient(135deg, #cf5b1b 0%, #ff8c42 100%);
  --admin-gradient-subtle: linear-gradient(135deg, #fdf5f0 0%, #fbe8dc 100%);
  
  /* Surfaces */
  --admin-bg: #f8fafc;
  --admin-surface: #ffffff;
  --admin-surface-hover: #f1f5f9;
  --admin-border: #e2e8f0;
  --admin-border-light: #f1f5f9;
  
  /* Text */
  --admin-text: #0f172a;
  --admin-text-secondary: #64748b;
  --admin-text-tertiary: #94a3b8;
  --admin-text-on-primary: #ffffff;
  
  /* States */
  --admin-success: #22c55e;
  --admin-success-light: #dcfce7;
  --admin-error: #ef4444;
  --admin-error-light: #fef2f2;
  --admin-warning: #f59e0b;
  
  /* Spacing */
  --admin-radius-xs: 6px;
  --admin-radius-sm: 8px;
  --admin-radius: 12px;
  --admin-radius-lg: 16px;
  --admin-radius-xl: 20px;
  --admin-radius-2xl: 24px;
  
  /* Shadows */
  --admin-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --admin-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --admin-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --admin-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --admin-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --admin-shadow-primary: 0 10px 30px -5px rgba(233, 110, 40, 0.35);
  
  /* Transitions */
  --admin-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --admin-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --admin-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --admin-transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.admin-auth-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--admin-text);
  background-color: var(--admin-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}


/* =============================================
   3. AUTH CONTAINER — SPLIT LAYOUT
   ============================================= */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}


/* =============================================
   4. LEFT PANEL — BRANDING
   ============================================= */
.auth-branding {
  position: relative;
  width: 46%;
  min-height: 100vh;
  background: var(--admin-gradient);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.branding-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
}

.branding-inner {
  max-width: 480px;
  width: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Branding Typography */
.branding-title {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.branding-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Floating Geometric Shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  bottom: 10%;
  left: -40px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  top: 25%;
  right: 15%;
  animation: float-rotate 12s linear infinite;
}

.shape-4 {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.06);
  bottom: 25%;
  right: 10%;
  border-radius: var(--admin-radius);
  animation: float-slow 7s ease-in-out infinite;
  transform: rotate(45deg);
}

.shape-5 {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  top: 40%;
  left: 20%;
  animation: pulse-dot 3s ease-in-out infinite;
}

/* Dashboard Preview Card */
.preview-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--admin-radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out 0.3s both;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.preview-dots span:first-child { background: #ff6b6b; }
.preview-dots span:nth-child(2) { background: #feca57; }
.preview-dots span:last-child { background: #48dbfb; }

.preview-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.preview-body {
  padding: 20px;
}

.preview-stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.preview-stat {
  flex: 1;
}

.preview-stat .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.preview-stat .stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.preview-chart {
  opacity: 0.8;
}

.mini-chart {
  width: 100%;
  height: auto;
}

/* Feature Items */
.branding-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUp 0.8s ease-out 0.5s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
}


/* =============================================
   5. RIGHT PANEL — AUTH FORM
   ============================================= */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--admin-surface);
  overflow-y: auto;
  min-height: 100vh;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* Auth Steps */
.auth-step {
  display: none;
  animation: fadeSlideIn 0.5s ease-out;
}

.auth-step.active {
  display: block;
}

/* Form Header */
.auth-form-header {
  margin-bottom: 36px;
}

.auth-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-form-header p {
  font-size: 15px;
  color: var(--admin-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.auth-form-header p strong {
  color: var(--admin-primary);
  font-weight: 600;
}

/* Mobile Logo (hidden on desktop) */
.mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.logo-icon-sm {
  width: 38px;
  height: 38px;
  background: var(--admin-gradient);
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
}

.mobile-logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.5px;
}


/* =============================================
   6. FORM STYLES
   ============================================= */
.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.label-row label {
  margin-bottom: 0;
}

.forgot-link {
  font-size: 13px;
  color: var(--admin-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--admin-transition-fast);
}

.forgot-link:hover {
  color: var(--admin-primary-dark);
  text-decoration: underline;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 15px;
  color: var(--admin-text-tertiary);
  transition: var(--admin-transition);
  z-index: 1;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--admin-text);
  background: var(--admin-surface);
  outline: none;
  transition: var(--admin-transition);
}

.input-wrapper input::placeholder {
  color: var(--admin-text-tertiary);
  font-weight: 400;
}

.input-wrapper input:hover {
  border-color: var(--admin-primary-lighter);
}

.input-wrapper input:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 4px rgba(233, 110, 40, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper input:focus + .input-icon {
  color: var(--admin-primary);
}

.input-wrapper:has(input:focus) .input-icon {
  color: var(--admin-primary);
}

/* Password Toggle */
.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--admin-text-tertiary);
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  transition: var(--admin-transition-fast);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--admin-primary);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--admin-transition);
}

.password-strength.visible {
  opacity: 1;
  height: auto;
  padding-top: 2px;
}

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

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: var(--admin-transition);
}

.strength-fill.weak { width: 33%; background: var(--admin-error); }
.strength-fill.medium { width: 66%; background: var(--admin-warning); }
.strength-fill.strong { width: 100%; background: var(--admin-success); }

.strength-text {
  font-size: 12px;
  font-weight: 500;
  min-width: 55px;
}

.strength-text.weak { color: var(--admin-error); }
.strength-text.medium { color: var(--admin-warning); }
.strength-text.strong { color: var(--admin-success); }

/* Custom Checkbox */
.form-options {
  margin-bottom: 28px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  position: relative;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--admin-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
  flex-shrink: 0;
  position: relative;
}

.checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: var(--admin-transition-spring);
  position: absolute;
  top: 2px;
  left: 6px;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
}

.custom-checkbox input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-label {
  font-size: 14px;
  color: var(--admin-text-secondary);
  font-weight: 450;
}


/* =============================================
   7. BUTTONS
   ============================================= */
.btn-primary-admin {
  width: 100%;
  height: 52px;
  background: var(--admin-gradient);
  color: var(--admin-text-on-primary);
  border: none;
  border-radius: var(--admin-radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary-admin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--admin-transition);
}

.btn-primary-admin:hover {
  transform: translateY(-1px);
  box-shadow: var(--admin-shadow-primary);
}

.btn-primary-admin:hover::before {
  opacity: 1;
}

.btn-primary-admin:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary-admin .btn-loader {
  display: none;
}

.btn-primary-admin.loading .btn-text {
  display: none;
}

.btn-primary-admin.loading .btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-admin.loading {
  pointer-events: none;
  opacity: 0.85;
}


/* =============================================
   8. DIVIDER & SOCIAL LOGIN
   ============================================= */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

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

.auth-divider span {
  font-size: 13px;
  color: var(--admin-text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.social-btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-text);
  cursor: pointer;
  transition: var(--admin-transition);
}

.social-btn:hover {
  border-color: var(--admin-primary-lighter);
  background: var(--admin-primary-ghost);
  transform: translateY(-1px);
  box-shadow: var(--admin-shadow-sm);
}

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

/* Footer Text */
.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--admin-text-tertiary);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}


/* =============================================
   9. 2FA VERIFICATION STEP
   ============================================= */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  color: var(--admin-text-secondary);
  cursor: pointer;
  transition: var(--admin-transition);
  margin-bottom: 28px;
  font-size: 15px;
}

.back-btn:hover {
  border-color: var(--admin-primary-lighter);
  color: var(--admin-primary);
  background: var(--admin-primary-ghost);
}

/* Verify Icon */
.verify-icon {
  margin-bottom: 24px;
}

.verify-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--admin-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--admin-primary);
  position: relative;
  animation: pulse-ring 2s ease-in-out infinite;
}

.verify-icon-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--admin-primary-lighter);
  animation: spin-slow 12s linear infinite;
}

/* OTP Input */
.otp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.otp-separator {
  color: var(--admin-text-tertiary);
  font-size: 18px;
  font-weight: 300;
  margin: 0 2px;
}

.otp-input {
  width: 54px;
  height: 60px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--admin-text);
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  outline: none;
  transition: var(--admin-transition);
  caret-color: var(--admin-primary);
}

.otp-input:hover {
  border-color: var(--admin-primary-lighter);
}

.otp-input:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 4px rgba(233, 110, 40, 0.1);
  transform: translateY(-2px);
}

.otp-input.filled {
  border-color: var(--admin-primary);
  background: var(--admin-primary-ghost);
}

.otp-input.error {
  border-color: var(--admin-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

/* Resend Section */
.resend-section {
  text-align: center;
  margin: 28px 0 20px;
}

.resend-text {
  font-size: 14px;
  color: var(--admin-text-tertiary);
  margin-bottom: 6px;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--admin-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  padding: 4px 8px;
  border-radius: var(--admin-radius-xs);
}

.resend-btn:hover:not(:disabled) {
  background: var(--admin-primary-ghost);
}

.resend-btn:disabled {
  color: var(--admin-text-tertiary);
  cursor: not-allowed;
}

.resend-btn #resendTimer {
  font-weight: 400;
}

/* Alt Method */
.alt-method {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--admin-border-light);
}

.alt-method-link {
  font-size: 14px;
  color: var(--admin-text-secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--admin-transition-fast);
  padding: 8px 16px;
  border-radius: var(--admin-radius-sm);
}

.alt-method-link:hover {
  color: var(--admin-primary);
  background: var(--admin-primary-ghost);
}


/* =============================================
   10. SUCCESS STEP
   ============================================= */
.success-content {
  text-align: center;
  padding: 60px 0;
}

.success-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 8px;
  animation: fadeSlideIn 0.5s ease-out 0.6s both;
}

.success-content p {
  font-size: 15px;
  color: var(--admin-text-secondary);
  margin-bottom: 32px;
  animation: fadeSlideIn 0.5s ease-out 0.8s both;
}

/* Success Checkmark */
.success-checkmark {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  position: relative;
}

.check-icon {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
}

.check-icon .icon-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--admin-success);
  animation: checkCircle 0.5s ease-out both;
}

.check-icon .icon-fix {
  position: absolute;
  top: 8px;
  width: 5px;
  left: 26px;
  height: 85px;
  background: var(--admin-surface);
  transform: rotate(-45deg);
  z-index: 1;
  animation: fixRemove 0.1s ease-out 0.5s both;
}

.check-icon .icon-line {
  display: block;
  position: absolute;
  height: 4px;
  background: var(--admin-success);
  border-radius: 2px;
  z-index: 2;
}

.check-icon .line-tip {
  width: 25px;
  left: 14px;
  top: 50px;
  transform: rotate(45deg);
  animation: checkTip 0.3s ease-out 0.35s both;
  transform-origin: left center;
}

.check-icon .line-long {
  width: 47px;
  right: 8px;
  top: 42px;
  transform: rotate(-45deg);
  animation: checkLong 0.4s ease-out 0.4s both;
  transform-origin: left center;
}

/* Redirect Progress Bar */
.redirect-progress {
  width: 200px;
  height: 4px;
  background: var(--admin-border-light);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  animation: fadeSlideIn 0.5s ease-out 1s both;
}

.redirect-bar {
  height: 100%;
  background: var(--admin-gradient);
  border-radius: 2px;
  animation: progressFill 2s ease-in-out 1.2s both;
}


/* =============================================
   11. INPUT VALIDATION STATES
   ============================================= */
.input-wrapper input.error {
  border-color: var(--admin-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.input-wrapper input.success {
  border-color: var(--admin-success);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--admin-error);
  margin-top: 8px;
  font-weight: 500;
  animation: fadeSlideIn 0.3s ease-out;
}

.error-message i {
  font-size: 12px;
}


/* =============================================
   12. TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-xl);
  border-left: 4px solid var(--admin-primary);
  min-width: 320px;
  max-width: 420px;
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-text);
}

.toast.success { border-left-color: var(--admin-success); }
.toast.error { border-left-color: var(--admin-error); }
.toast.warning { border-left-color: var(--admin-warning); }

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: var(--admin-success-light); color: var(--admin-success); }
.toast.error .toast-icon { background: var(--admin-error-light); color: var(--admin-error); }

.toast.hiding {
  animation: toastSlideOut 0.3s ease-in forwards;
}


/* =============================================
   13. ANIMATIONS
   ============================================= */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes float-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 110, 40, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(233, 110, 40, 0); }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes checkCircle {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkTip {
  0% { width: 0; opacity: 0; }
  100% { width: 25px; opacity: 1; }
}

@keyframes checkLong {
  0% { width: 0; opacity: 0; }
  100% { width: 47px; opacity: 1; }
}

@keyframes fixRemove {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
}

/* Staggered animation for form elements */
.auth-step.active .form-group:nth-child(1) { animation: fadeSlideIn 0.4s ease-out 0.1s both; }
.auth-step.active .form-group:nth-child(2) { animation: fadeSlideIn 0.4s ease-out 0.2s both; }
.auth-step.active .form-options { animation: fadeSlideIn 0.4s ease-out 0.3s both; }
.auth-step.active .btn-primary-admin { animation: fadeSlideIn 0.4s ease-out 0.35s both; }
.auth-step.active .auth-divider { animation: fadeSlideIn 0.4s ease-out 0.4s both; }
.auth-step.active .social-login { animation: fadeSlideIn 0.4s ease-out 0.45s both; }
.auth-step.active .auth-footer-text { animation: fadeSlideIn 0.4s ease-out 0.5s both; }


/* =============================================
   14. RESPONSIVE DESIGN
   ============================================= */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .branding-title {
    font-size: 46px;
  }
  
  .auth-form-wrapper {
    max-width: 460px;
  }
}

/* Laptop (1024px - 1279px) */
@media (max-width: 1279px) {
  .auth-branding {
    width: 42%;
  }
  
  .branding-content {
    padding: 40px 36px;
  }
  
  .branding-title {
    font-size: 34px;
  }
  
  .branding-subtitle {
    font-size: 15px;
  }
  
  .preview-stat .stat-value {
    font-size: 16px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .auth-branding {
    width: 38%;
  }
  
  .branding-content {
    padding: 40px 28px;
  }
  
  .branding-title {
    font-size: 28px;
  }
  
  .branding-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .preview-card {
    margin-bottom: 28px;
  }
  
  .preview-stat-row {
    gap: 12px;
  }
  
  .preview-stat .stat-value {
    font-size: 15px;
  }
  
  .feature-item {
    font-size: 13px;
  }
  
  .brand-logo {
    margin-bottom: 36px;
  }
  
  .auth-form-panel {
    padding: 32px;
  }
}

/* Mobile (below 768px) — Stacked Layout */
@media (max-width: 767px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-branding {
    width: 100%;
    min-height: auto;
    padding: 0;
  }
  
  .branding-content {
    padding: 48px 24px 40px;
    align-items: flex-start;
  }
  
  .branding-inner {
    max-width: 100%;
  }
  
  .brand-logo {
    margin-bottom: 24px;
  }
  
  .branding-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .branding-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .preview-card {
    margin-bottom: 24px;
  }
  
  .branding-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .feature-item {
    font-size: 12px;
    gap: 8px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
  }
  
  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 50%;
  }
  
  /* Shapes scale down */
  .shape-1 { width: 180px; height: 180px; top: -40px; right: -30px; }
  .shape-2 { width: 120px; height: 120px; }
  .shape-3 { width: 80px; height: 80px; }
  
  /* Form Panel */
  .auth-form-panel {
    padding: 32px 24px 40px;
    min-height: auto;
  }
  
  .auth-form-wrapper {
    max-width: 100%;
  }
  
  .mobile-logo {
    display: flex;
  }
  
  .auth-form-header h2 {
    font-size: 24px;
  }
  
  .otp-input {
    flex: 1;
    min-width: 0;
    max-width: 46px;
    height: 52px;
    font-size: 20px;
  }
  
  .otp-container {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
}

/* Small Mobile (below 400px) */
@media (max-width: 399px) {
  .branding-content {
    padding: 36px 20px 32px;
  }
  
  .branding-title {
    font-size: 24px;
  }
  
  .auth-form-panel {
    padding: 28px 20px 36px;
  }
  
  .auth-form-header h2 {
    font-size: 22px;
  }
  
  .otp-input {
    flex: 1;
    min-width: 0;
    max-width: 38px;
    height: 46px;
    font-size: 16px;
  }
  
  .otp-container {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  
  .otp-separator {
    margin: 0 1px;
    font-size: 12px;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .input-wrapper input {
    height: 48px;
    font-size: 14px;
  }
  
  .btn-primary-admin {
    height: 48px;
    font-size: 14px;
  }
  
  .preview-stat-row {
    gap: 8px;
  }
  
  .preview-stat .stat-value {
    font-size: 14px;
  }
  
  .preview-stat .stat-label {
    font-size: 10px;
  }
}

/* Landscape phones */
@media (max-height: 600px) and (orientation: landscape) {
  .auth-branding {
    display: none;
  }
  
  .auth-form-panel {
    padding: 20px 40px;
  }
  
  .mobile-logo {
    display: flex;
  }
}

/* Print */
@media print {
  .auth-branding {
    display: none;
  }
  
  .floating-shape {
    display: none;
  }
}

/* Accessibility — Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-shape {
    animation: none !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--admin-primary);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--admin-primary);
  outline-offset: 2px;
}
