/* MoDrinks sign in and sign up pages. Load order: gen.css, shp.css, ath.css.
   Reuses the form system in gen.css (.form-panel, .field, .input-wrap, .password-meter, .terms-row, .submit-btn, .form-message). */
.auth-page { padding: 4px 0 72px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 660px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow); }

/* Left visual panel */
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 44px 40px; color: var(--color-on-dark); background: var(--color-primary-deep); isolation: isolate; }
.auth-visual > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-visual:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(var(--rgb-forest) / .94) 15%, rgb(var(--rgb-forest) / .45) 65%, rgb(var(--rgb-forest) / .25)); }
.auth-visual .eyebrow { color: var(--color-accent-text); }
.auth-visual h2 { margin: 0; font: 800 clamp(28px, 3.2vw, 40px)/1.1 var(--font-display); letter-spacing: -1.4px; }
.auth-visual > p { margin: 0; max-width: 360px; color: rgb(var(--rgb-white) / .85); font-size: 15px; line-height: 1.7; }
.auth-points { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; }
.auth-points li > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: var(--color-primary); font-size: 13px; font-weight: 800; }
.auth-points .badge-18 { margin-left: 4px; }

/* Right form panel */
.auth-layout .form-panel { width: 100%; justify-content: center; border: 0; border-radius: 0; box-shadow: none; padding: clamp(26px, 5vw, 60px); }
.auth-form-inner { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-layout.auth-layout--single { display: block; width: min(100%, 520px); min-height: 0; margin: 0 auto; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-layout.auth-layout--signup { width: min(100%, 680px); }
.auth-layout.auth-layout--single .form-panel { border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); }
.auth-layout--signup .auth-form-inner { max-width: 520px; }
.auth-form-inner .form-heading h1 { margin: 12px 0 8px; font: 800 32px/1.15 var(--font-display); letter-spacing: -1.3px; }
.auth-form-inner .form-heading p { font-size: 14px; }
.auth-form-inner .field { margin-bottom: 16px; }
.auth-form-inner .field label { display: flex; font-size: 13px; }
.auth-form-inner .field input { height: 50px; font-size: 14px; }
.auth-form-inner .field label .optional { font-size: 12px; }
.auth-form-inner .field-error { font-size: 12px; }
.auth-form-inner .form-message { font-size: 13px; }
.auth-form-inner .show-password { font-size: 12px; }
.auth-form-inner .terms-row { font-size: 13px; }
.auth-form-inner .login-note { font-size: 13px; }
.auth-form-inner .submit-btn { height: 52px; font-size: 14px; }
.field-grid .field { margin-bottom: 0; }
.field-grid { margin-bottom: 16px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.field-row .terms-row { margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--color-text-faint); font-size: 12px; }
.auth-divider:before, .auth-divider:after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.auth-alt { display: grid; gap: 10px; }
.auth-alt .btn { justify-content: center; }
.demo-note { margin: 18px 0 0; color: var(--color-text-faint); font-size: 12px; text-align: center; }

/* Submit button loading state */

/* Password strength */
.password-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.password-checks li { display: flex; align-items: center; gap: 6px; color: var(--color-text-faint); font-size: 12px; }
.password-checks li:before { content: "○"; font-size: 11px; }
.password-checks li.met { color: var(--color-primary); }
.password-checks li.met:before { content: "✓"; font-weight: 800; }
.password-meter { margin-top: 10px; }
.password-hint { font-size: 12px; }

/* Verification code boxes */
.otp { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.otp-input { width: 100%; max-width: 56px; height: 60px; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface-alt); color: var(--color-text); font: 800 24px var(--font-display); text-align: center; outline: none; transition: border-color .2s, box-shadow .2s; }
.otp-input:focus { border-color: var(--color-border-strong); background: var(--color-surface); box-shadow: 0 0 0 3px rgb(var(--rgb-forest) / .08); }
.otp.invalid .otp-input { border-color: var(--color-warm-strong); }
.resend-row { margin: 16px 0 0; color: var(--color-text-muted); font-size: 13px; text-align: center; }
.resend-row .text-btn:disabled { color: var(--color-text-faint); text-decoration: none; cursor: default; }
.auth-success { text-align: center; }
.auth-success .check-circle { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--color-primary-pale); color: var(--color-primary); font-size: 30px; font-weight: 800; }
.auth-success h1 { margin: 0 0 10px; font: 800 28px/1.15 var(--font-display); letter-spacing: -1px; }
.auth-success p { margin: 0 0 22px; color: var(--color-text-muted); font-size: 14px; line-height: 1.7; }
.auth-success .btn { width: 100%; justify-content: center; }

/* The shared storefront header is used here without the homepage stylesheet. */
.header .head-row { display: flex; width: min(1200px, calc(100% - 48px)); height: 74px; justify-content: space-between; gap: 24px; }
.header .brand { flex-shrink: 0; font-size: 24px; letter-spacing: 0; }
.header .head-actions { display: flex; align-items: center; gap: 18px; }
.header .currency-label { margin-right: -12px; color: var(--color-text-muted); font-size: 10px; font-weight: 700; }
.header .account-label { display: inline; font-size: 11px; font-weight: 700; }
.header .account-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface); color: var(--color-text); }
.header-lower { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.header-lower-inner { display: flex; width: min(1200px, calc(100% - 48px)); min-height: 55px; align-items: center; justify-content: space-between; gap: 30px; }
.primary-nav { display: flex; min-width: max-content; align-items: center; gap: 28px; }
.primary-nav a { color: var(--color-text-muted); font-size: 11px; font-weight: 700; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--color-primary); }
.desktop-search { display: block; width: min(420px, 42%); max-width: none; }
.desktop-search .search-box { height: 39px; border-radius: var(--radius-m); background: var(--color-surface-alt); }
.mobile-search { display: none; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-visual { min-height: 0; padding: 26px 24px; }
  .auth-visual > p, .auth-points { display: none; }
  .auth-visual h2 { font-size: 24px; }
}
@media (max-width: 700px) {
  .header .head-row { width: calc(100% - 28px); height: 64px; gap: 8px; }
  .header .brand { gap: 7px; font-size: 20px; }
  .header .brand-mark { width: 34px; height: 34px; }
  .header .head-actions { gap: 8px; }
  .header .currency-label, .header .account-label { display: none; }
  .header .account-link { width: 37px; min-height: 37px; padding: 0; border: 0; background: transparent; }
  .header .cart-trigger { height: 38px; min-width: 40px; padding: 0 9px; gap: 5px; }
  .header .cart-label { display: none; }
  .header-lower { border-top: 0; background: transparent; }
  .header-lower-inner { width: 100%; min-height: 42px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
  .header-lower-inner::-webkit-scrollbar { display: none; }
  .primary-nav { gap: 21px; }
  .primary-nav a { font-size: 10px; }
  .desktop-search { display: none; }
  .mobile-search { display: block; width: calc(100% - 28px); padding: 0 0 12px; }
  .mobile-search .search-wrap { display: block; max-width: none; }
  .mobile-search .search-box { height: 41px; border-radius: var(--radius-m); }
  .auth-page { padding-bottom: 40px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: var(--radius-l); }
  .auth-layout.auth-layout--single .form-panel { border-radius: var(--radius-l); }
  .auth-visual { display: none; }
  .auth-form-inner .field input, .otp-input { font-size: 16px; }
  .auth-form-inner .form-heading h1 { font-size: 27px; }
  .password-checks { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .otp-input { height: 52px; }
}