/* ═══════════════════════════════════════════════════════
   G-max Auth Pages — Shared Professional White UI
   Used by: login.php, register.php, forgot-password.php,
            reset-password.php
   ═══════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0EBFF 50%, #EFF6FF 100%);
  position: relative;
  z-index: 1;
}
/* Subtle decorative blobs */
.auth-wrap::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrap::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,72,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Card ── */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 48px rgba(26,107,241,0.08);
  position: relative;
  z-index: 2;
}
.auth-card-wide { max-width: 520px; }

/* ── Brand ── */
.auth-brand {
  text-align: center;
  margin-bottom: 6px;
}
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A6BF1;
  text-decoration: none;
}
.auth-brand-logo:hover { opacity: 0.85; }
.auth-brand-bolt { font-size: 22px; }

/* ── Headings ── */
.auth-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #0D0D0D;
  margin-bottom: 6px;
  margin-top: 16px;
}
.auth-sub {
  text-align: center;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Google button ── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  color: #374151;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.btn-google:hover {
  border-color: #4285F4;
  background: #F8FBFF;
  box-shadow: 0 2px 10px rgba(66,133,244,0.15);
  color: #374151;
}
.btn-google svg { flex-shrink: 0; }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}
.auth-divider span {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Form controls ── */
.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 15px;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: 11px 42px 11px 40px;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  color: #0D0D0D;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.auth-input:focus {
  border-color: #1A6BF1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,107,241,0.1);
}
.auth-input::placeholder { color: #9CA3AF; }
.auth-input-no-icon { padding-left: 15px; }
/* Password toggle */
.pw-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.2s;
}
.pw-toggle:hover { color: #1A6BF1; }

/* Password strength */
.pw-strength-bar {
  height: 4px;
  border-radius: 4px;
  background: #E5E7EB;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s;
  width: 0;
}
.pw-strength-hint {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 5px;
}

/* ── Two-column layout ── */
.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Checkbox row ── */
.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-check-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #1A6BF1;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-check-row label {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  cursor: pointer;
}
.auth-check-row a { color: #1A6BF1; text-decoration: none; font-weight: 500; }
.auth-check-row a:hover { text-decoration: underline; }

/* ── Remember + forgot row ── */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.auth-meta-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
}
.auth-meta-row input { accent-color: #1A6BF1; }

/* ── Submit button ── */
.auth-submit {
  width: 100%;
  padding: 13px;
  background: #1A6BF1;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.auth-submit:hover {
  background: #1255CC;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,107,241,0.35);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Footer links ── */
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #6B7280;
  margin-top: 20px;
}
.auth-link {
  color: #1A6BF1;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

/* ── Alerts ── */
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert a { font-weight: 700; }
.auth-alert-error   { background:#FEF2F2; border:1px solid #FECACA; color:#DC2626; }
.auth-alert-error a { color:#991B1B; }
.auth-alert-success { background:#F0FDF4; border:1px solid #BBF7D0; color:#15803D; }
.auth-alert-success a { color:#065F46; }
.auth-alert-info    { background:#EFF6FF; border:1px solid #BFDBFE; color:#1D4ED8; }
.auth-alert-info a  { color:#1E40AF; }
.auth-alert-warning { background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; }

/* ── OTP / verification screen ── */
.otp-wrapper { text-align: center; }
.otp-icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 34px;
}
.otp-masked-email {
  display: inline-block;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1A6BF1;
  margin: 8px 0 24px;
  font-family: monospace;
}
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.otp-box {
  width: 52px;
  height: 60px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: #0D0D0D;
  background: #F9FAFB;
  outline: none;
  transition: all 0.15s;
  caret-color: #1A6BF1;
}
.otp-box:focus {
  border-color: #1A6BF1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,107,241,0.1);
}
.otp-box.otp-filled {
  border-color: #16A34A;
  background: #F0FDF4;
  color: #15803D;
}
.otp-timer {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 16px;
}
.otp-timer strong { color: #1A6BF1; }
.otp-resend-btn {
  background: none;
  border: none;
  color: #1A6BF1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.otp-resend-btn:hover { text-decoration: underline; }
.otp-resend-btn:disabled { color: #9CA3AF; cursor: not-allowed; text-decoration: none; }

/* ── Success state ── */
.auth-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 38px;
}

/* ── Perks strip ── */
.auth-perks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.auth-perk {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-row-2 { grid-template-columns: 1fr; }
  .otp-box { width: 44px; height: 54px; font-size: 22px; gap: 7px; }
  .otp-boxes { gap: 7px; }
}
