/* ============================================================
   ShoeZone — auth-shared.css
   Bold split-panel editorial auth layout
   Fonts: Bebas Neue (display) + DM Sans (body) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:     #0a0a0a;
  --white:     #ffffff;
  --off-white: #f7f6f3;
  --grey-50:   #fafaf9;
  --grey-100:  #e8e8e6;
  --grey-200:  #d0cfcc;
  --grey-400:  #9a9a96;
  --grey-600:  #6b6b68;
  --grey-800:  #2b2b28;
  --red-err:   #dc2626;
  --green-ok:  #15803d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--black);
  font-size: 15px;
}

/* ── Auth page wrapper ────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left panel (brand) ───────────────────────────── */
.auth-panel-brand {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.auth-panel-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,.025) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(255,255,255,.015) 29px);
  pointer-events: none;
}

.auth-brand-top { position: relative; z-index: 1; }
.auth-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.auth-logo-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
}
.auth-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: .05em;
  color: var(--white);
}
.auth-logo-text em {
  font-style: normal;
  color: rgba(255,255,255,.45);
}

.auth-panel-mid { position: relative; z-index: 1; }
.auth-panel-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  letter-spacing: .02em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.auth-panel-tagline span { color: rgba(255,255,255,.3); }
.auth-panel-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  max-width: 320px;
}

.auth-panel-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
}
.auth-stat { display: flex; flex-direction: column; gap: .1rem; }
.auth-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .05em;
  color: var(--white);
}
.auth-stat-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ── Right panel (form) ───────────────────────────── */
.auth-panel-form {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--white);
}
.auth-form-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.auth-form-inner { width: 100%; max-width: 400px; }

/* Heading */
.auth-form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: .03em;
  color: var(--black);
  margin-bottom: .35rem;
}
.auth-form-sub {
  font-size: .83rem;
  color: var(--grey-400);
  margin-bottom: 2rem;
  line-height: 1.55;
}

/* Error/info alert */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.auth-alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}
.auth-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
}
.auth-alert i { flex-shrink: 0; margin-top: .15rem; }
.auth-alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  opacity: .6;
  flex-shrink: 0;
}
.auth-alert-close:hover { opacity: 1; }

/* Field */
.auth-field { margin-bottom: 1.25rem; }
.auth-field label {
  display: block;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: .4rem;
}
.auth-field input {
  width: 100%;
  padding: .78rem 1rem;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--off-white);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.auth-field input:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,10,10,.06);
}
.auth-field input.is-valid   { border-color: #22c55e; }
.auth-field input.is-invalid { border-color: var(--red-err); }
.auth-field-error {
  font-size: .74rem;
  color: var(--red-err);
  margin-top: .3rem;
  display: none;
}
.auth-field-error.visible { display: block; }
.auth-field-hint {
  font-size: .74rem;
  margin-top: .3rem;
  display: block;
}
.hint-ok   { color: var(--green-ok); }
.hint-err  { color: var(--red-err); }
.hint-mute { color: var(--grey-400); }

/* Password input with toggle */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 3rem; }
.auth-pw-toggle {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-400);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color .2s;
}
.auth-pw-toggle:hover { color: var(--black); }

/* Submit button */
.btn-auth-submit {
  width: 100%;
  padding: .9rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: 'DM Sans', sans-serif;
  margin-top: .25rem;
}
.btn-auth-submit:hover:not(:disabled) {
  background: var(--grey-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn-auth-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Google button */
.btn-auth-google {
  width: 100%;
  padding: .82rem;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-decoration: none;
  margin-top: .75rem;
}
.btn-auth-google:hover { border-color: var(--black); background: var(--off-white); color: var(--black); }
.btn-auth-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--grey-400);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-100);
}

/* Footer links */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.auth-links a {
  font-size: .82rem;
  color: var(--grey-600);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.auth-links a:hover { color: var(--black); }
.auth-links a strong { color: var(--black); }

/* Form footer bar */
.auth-form-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--grey-100);
  text-align: center;
  font-size: .75rem;
  color: var(--grey-400);
  background: var(--off-white);
}

/* ── OTP boxes ────────────────────────────────────── */
.otp-row {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: .5rem 0 .75rem;
}
.otp-box {
  width: 52px;
  height: 62px;
  font-size: 1.7rem;
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  text-align: center;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--black);
  caret-color: transparent;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.otp-box:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,10,10,.07);
}
.otp-box.filled { border-color: var(--grey-800); background: var(--white); }

.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}
.otp-timer-text { font-size: .8rem; color: var(--grey-400); font-weight: 600; }
.btn-resend {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: .35rem .9rem;
  color: var(--black);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-resend:hover:not(:disabled) { border-color: var(--black); background: var(--off-white); }
.btn-resend:disabled { opacity: .35; cursor: not-allowed; }

/* ── Password strength bar ─────────────────────────── */
.auth-strength-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--grey-100);
  margin: .5rem 0 .3rem;
  overflow: hidden;
}
.auth-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width .3s, background .3s;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 899px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel-brand {
    position: static;
    height: auto;
    padding: 1.75rem 1.5rem;
  }
  .auth-panel-tagline { font-size: 2.2rem; }
  .auth-panel-mid { display: none; } /* hide large tagline on mobile */
  .auth-panel-bottom { gap: 1.25rem; }
}
@media (max-width: 575px) {
  .auth-form-scroll { padding: 2rem 1.25rem; }
  .otp-box { width: 44px; height: 54px; font-size: 1.4rem; }
  .otp-row { gap: .4rem; }
}