/* ============================================================
   BOOKR — Auth Pages (Login, Register, OTP, Reset)
   ============================================================ */
@import url('variables.css');

.auth-body { background: #F8F9FE; }

/* -----------------------------------------------
   Two-panel wrapper
----------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 440px 1fr;
}

/* -----------------------------------------------
   Left Panel — dark branded side
----------------------------------------------- */
.auth-left {
  background: linear-gradient(160deg, #0F0E17 0%, #1A1A2E 55%, #0D1B4B 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

/* Animated gradient blobs */
.auth-blobs { position: absolute; inset: 0; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #6C63FF; top: -120px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 340px; height: 340px; background: #00D2D3; bottom: 20px; left: -80px; animation-delay: 2s; }
.blob-3 { width: 200px; height: 200px; background: #FF6B6B; bottom: 180px; right: 40px; animation-delay: 4s; }

.auth-left-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo */
.auth-logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-12);
}
.auth-logo em {
  background: linear-gradient(135deg, #6C63FF, #00D2D3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* Headline copy */
.auth-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-headline {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}
.auth-headline span {
  background: linear-gradient(135deg, #6C63FF, #00D2D3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 340px;
}

/* Feature list */
.auth-features {
  list-style: none;
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #00D2D3);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(108,99,255,0.7);
}

/* Glassmorphic stat card */
.auth-glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: var(--space-10);
}
.auth-stats { display: flex; gap: 32px; }
.auth-stat .num { font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
.auth-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Quote */
.auth-quote {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-quote p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  line-height: 1.6;
}
.auth-quote .author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-style: normal;
}
.author-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #00D2D3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.author-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); }

/* -----------------------------------------------
   Right Panel — form side
----------------------------------------------- */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  min-height: 100vh;
  background: #F8F9FE;
}

.auth-form-box { width: 100%; max-width: 420px; }

/* Form header */
.auth-form-header { margin-bottom: var(--space-8); }
.auth-form-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.auth-form-header .back-link:hover { color: var(--color-primary); }
.auth-form-header h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.auth-form-header p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Role tabs */
.auth-tabs {
  display: flex;
  background: var(--color-bg);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
}
.auth-tab {
  flex: 1; text-align: center;
  padding: 9px 16px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 10px;
  border: none; background: none;
  transition: all var(--duration-fast);
}
.auth-tab.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Form card */
.auth-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(108,99,255,0.08);
  border: 1px solid var(--color-border);
}

/* Submit button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-brand);
  font-family: inherit;
  margin-top: var(--space-2);
}
.btn-auth:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
}
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-auth.loading { position: relative; color: transparent; }
.btn-auth.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-5) 0;
  font-size: var(--text-xs);
  color: var(--color-text-light);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border);
}

/* Bottom link */
.auth-switch {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.auth-switch a { font-weight: var(--weight-semibold); color: var(--color-primary); }
.auth-switch a:hover { color: var(--color-primary-dark); }

/* Forgot password */
.forgot-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  float: right;
  margin-top: -2px;
  transition: color var(--duration-fast);
}
.forgot-link:hover { color: var(--color-primary); }

/* -----------------------------------------------
   OTP Page Styles
----------------------------------------------- */
.otp-hero { text-align: center; margin-bottom: var(--space-8); }
.otp-hero .otp-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-brand);
}
.otp-hero h1 { font-size: 26px; margin-bottom: 8px; }
.otp-hero p { color: var(--color-text-muted); font-size: var(--text-sm); }
.otp-hero .email-highlight {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  word-break: break-all;
}

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: var(--space-6) 0; }
.otp-digit {
  width: 54px; height: 62px;
  text-align: center;
  font-size: 26px; font-weight: 900;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-dark);
  outline: none;
  transition: all var(--duration-fast);
  -moz-appearance: textfield;
}
.otp-digit::-webkit-inner-spin-button,
.otp-digit::-webkit-outer-spin-button { -webkit-appearance: none; }
.otp-digit:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); transform: translateY(-2px); }
.otp-digit.filled { border-color: var(--color-primary); background: rgba(108,99,255,0.04); }

.otp-timer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.otp-timer .timer-count { font-weight: var(--weight-bold); color: var(--color-primary); }
.otp-timer .timer-expired { color: var(--color-accent); }

.resend-row {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.resend-btn {
  background: none; border: none; cursor: pointer;
  color: var(--color-primary); font-weight: var(--weight-semibold);
  font-size: var(--text-sm); font-family: inherit; padding: 0;
  text-decoration: underline;
}
.resend-btn:disabled { color: var(--color-text-light); cursor: not-allowed; text-decoration: none; }

/* -----------------------------------------------
   Password Change / Reset
----------------------------------------------- */
.password-strength-bar { margin-top: 8px; }
.strength-segments { display: flex; gap: 4px; margin-bottom: 4px; }
.strength-seg {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--color-border);
  transition: background var(--duration-normal);
}
.strength-label { font-size: 11px; font-weight: 600; }

.password-rules { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.rule {
  font-size: 12px;
  color: var(--color-text-light);
  display: flex; align-items: center; gap: 6px;
  transition: color var(--duration-fast);
}
.rule.met { color: var(--color-success); }
.rule-icon { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 8px; flex-shrink: 0; }
.rule.met .rule-icon { background: var(--color-success); border-color: var(--color-success); color: #fff; }

/* -----------------------------------------------
   Company Register — Plan Cards
----------------------------------------------- */
.plan-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-4); }
.plan-card {
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--duration-fast);
  position: relative;
}
.plan-card:hover { border-color: var(--color-primary); background: var(--color-surface-2); }
.plan-card.selected { border-color: var(--color-primary); background: rgba(108,99,255,0.04); }
.plan-card input[type="radio"] { position: absolute; opacity: 0; }
.plan-card .plan-name { font-size: 15px; font-weight: var(--weight-bold); color: var(--color-dark); }
.plan-card .plan-desc { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.plan-card .plan-price { font-size: 14px; font-weight: var(--weight-bold); color: var(--color-primary); margin-top: 4px; }
.plan-selected-check {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: none; align-items: center; justify-content: center; font-size: 11px;
}
.plan-card.selected .plan-selected-check { display: flex; }

/* -----------------------------------------------
   Responsive
----------------------------------------------- */
@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .otp-digit { width: 44px; height: 54px; font-size: 22px; }
  .auth-form-header h1 { font-size: 24px; }
}
