/* DeshiBiye authentication pages (login / forgot / reset) — premium redesign 2026-11-11.
   Isolated to .auth-* classes so no other page is touched. Brand palette:
   burgundy #671F32, champagne gold #C5A46D, ivory #FBF5EC, charcoal #27242A. */
.auth-page{--db-burgundy:#671F32;--db-burgundy-deep:#521627;--db-burgundy-soft:#7d2c42;
  --db-gold:#c5a46d;--db-gold-soft:#e9dcc0;--db-ivory:#fbf5ec;--db-charcoal:#27242a;
  --db-body:#5b5560;--db-line:#e8e2d6;--db-error:#b42318;--db-error-bg:#fef3f2;
  --db-error-line:#fecdca;background:var(--db-ivory)}
.auth-page main{max-width:1120px}
.auth-page a{color:var(--db-burgundy)}

/* Minimal auth header: logo only, no nav. */
.auth-header{position:static}
.auth-header .topbar{justify-content:flex-start;padding:16px 18px}

/* Compact, light auth footer: replaces the big dark site footer on auth pages. */
footer.site.auth-footer{background:var(--db-ivory);border-top:1px solid var(--db-line);color:var(--db-body)}
.auth-footer-inner{max-width:1120px;margin:0 auto;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13.5px}
.auth-footer-inner .logo img{height:32px;width:auto;display:block}
.auth-footer-inner p{margin:0}
.auth-footer-inner a{color:var(--db-charcoal);text-decoration:none;font-weight:600}
.auth-footer-inner a:hover{color:var(--db-burgundy);text-decoration:underline}

/* Layout: centred card, fills the viewport between header and footer. */
.auth-wrap{min-height:calc(100dvh - 150px);display:flex;align-items:center;justify-content:center;padding:36px 0}
.auth-card{display:grid;grid-template-columns:.92fr 1.08fr;width:100%;max-width:1020px;
  background:#fff;border:1px solid var(--db-line);border-radius:28px;overflow:hidden;
  box-shadow:0 24px 60px rgba(39,36,42,.14);animation:auth-rise .5s ease both}
@keyframes auth-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Left brand panel. */
.auth-brand{position:relative;background:var(--db-burgundy);color:#fff;padding:48px 44px;
  display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.auth-brand::before{content:"";position:absolute;right:-110px;bottom:-140px;width:340px;height:420px;
  border:1.5px solid rgba(197,164,109,.45);border-radius:170px 170px 0 0;pointer-events:none}
.auth-brand::after{content:"";position:absolute;right:-40px;top:-90px;width:220px;height:220px;
  border:1px solid rgba(197,164,109,.28);border-radius:50%;pointer-events:none}
.auth-brand>*{position:relative}
.auth-brand .logo-lockup{width:200px;height:auto;display:block;margin-bottom:30px}
.auth-brand-eyebrow{font-size:12px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:var(--db-gold);margin:0 0 14px}
.auth-brand h2{font-family:Fraunces,Georgia,serif;font-size:34px;line-height:1.18;font-weight:580;
  color:#fff;margin:0 0 14px;letter-spacing:-.01em}
.auth-brand-rule{width:56px;height:2px;background:var(--db-gold);border:0;margin:0 0 18px}
.auth-brand-support{font-size:15.5px;line-height:1.65;color:rgba(255,255,255,.86);margin:0 0 26px;max-width:380px}
.auth-brand-bn{font-family:"Noto Sans Bengali",sans-serif;font-size:15px;color:var(--db-gold-soft);
  margin:0 0 26px;letter-spacing:.02em}
.auth-trust{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.auth-trust li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.92)}
.auth-trust li b{display:block;color:#fff;font-weight:650}
.auth-trust .auth-diamond{flex:none;width:8px;height:8px;margin-top:7px;background:var(--db-gold);
  transform:rotate(45deg);border-radius:1.5px}

/* Right form panel. */
.auth-form{padding:48px 52px;display:flex;flex-direction:column;justify-content:center}
.auth-form h1{font-family:Fraunces,Georgia,serif;font-size:30px;line-height:1.2;font-weight:580;
  color:var(--db-charcoal);margin:0 0 8px;letter-spacing:-.01em}
.auth-sub{font-size:15.5px;line-height:1.6;color:var(--db-body);margin:0 0 26px}
.auth-error{margin:0 0 20px;font-size:14.5px;line-height:1.55}
.auth-form-el{margin:0}
.auth-field{margin:0 0 20px;position:relative}
.auth-field label{display:block;font-family:Inter,system-ui,sans-serif;font-size:14px;font-weight:600;
  color:var(--db-charcoal);margin:0 0 7px}
.auth-forgot{position:absolute;top:0;right:0;font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.auth-forgot:hover{text-decoration:underline}
.auth-forgot:focus-visible{outline:2px solid var(--db-gold);outline-offset:2px;border-radius:4px}
.auth-input{width:100%;padding:13px 14px;font-size:16px;font-family:Inter,system-ui,sans-serif;
  color:var(--db-charcoal);background:#fff;border:1px solid #d8d2c8;border-radius:12px;margin:0}
.auth-input::placeholder{color:#a39e9a}
.auth-input:focus{outline:none;border-color:var(--db-burgundy);box-shadow:0 0 0 3px rgba(197,164,109,.4)}
.auth-input[aria-invalid="true"]{border-color:var(--db-error)}
.auth-input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fff inset;-webkit-text-fill-color:var(--db-charcoal)}
.password-wrap{position:relative}
.password-wrap .auth-input{padding-right:52px}
.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;background:none;border:0;border-radius:9px;
  color:#8a837f;cursor:pointer;padding:0}
.password-toggle:hover{color:var(--db-burgundy);background:rgba(197,164,109,.14)}
.password-toggle:focus-visible{outline:2px solid var(--db-gold);outline-offset:1px}
.password-toggle svg{width:21px;height:21px;display:block}
.password-toggle .icon-off{display:none}
.password-toggle.is-showing .icon-off{display:block}
.password-toggle.is-showing .icon-on{display:none}
.auth-submit{width:100%;padding:15px 24px;font-size:16px;font-weight:700;font-family:Inter,system-ui,sans-serif;
  color:#fff;background:var(--db-burgundy);border:0;border-radius:12px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:10px;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.auth-submit:hover:not(:disabled){background:var(--db-burgundy-deep);box-shadow:0 8px 22px rgba(103,31,50,.28)}
.auth-submit:focus-visible{outline:3px solid rgba(197,164,109,.55);outline-offset:2px}
.auth-submit:disabled{cursor:wait;opacity:.85}
.auth-spinner{display:none;width:17px;height:17px;flex:none;border:2.5px solid rgba(255,255,255,.35);
  border-top-color:#fff;border-radius:50%;animation:auth-spin .7s linear infinite}
.auth-submit.is-loading .auth-spinner{display:block}
@keyframes auth-spin{to{transform:rotate(360deg)}}
.auth-switch{margin:24px 0 0;text-align:center;font-size:14.5px;color:var(--db-body)}
.auth-switch a{font-weight:650;text-decoration:none}
.auth-switch a:hover{text-decoration:underline}

/* Responsive: brand panel becomes a compact banner above the form. */
@media(max-width:860px){
  .auth-wrap{min-height:0;padding:20px 0 28px}
  .auth-card{grid-template-columns:1fr;border-radius:22px}
  .auth-brand{padding:30px 26px 26px}
  .auth-brand::before{width:200px;height:250px;right:-70px;bottom:-120px}
  .auth-brand .logo-lockup{width:168px;margin-bottom:20px}
  .auth-brand h2{font-size:24px;margin-bottom:0}
  .auth-brand-rule,.auth-brand-support,.auth-brand-bn,.auth-trust{display:none}
  .auth-form{padding:30px 24px 32px}
  .auth-form h1{font-size:25px}
  .auth-sub{margin-bottom:22px}
  .auth-footer-inner{justify-content:center;text-align:center}
}
@media(max-width:400px){
  .auth-form{padding:26px 20px 28px}
  .auth-brand{padding:26px 20px 22px}
}
@media(prefers-reduced-motion:reduce){
  .auth-card{animation:none}
  .auth-submit,.auth-spinner{animation:none;transition:none}
}

/* ---- v2: registration, phone input, password strength (2026-11-11) ---- */
.auth-card-wide{max-width:1080px}
.auth-names{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.auth-hint{font-size:13px;line-height:1.5;color:var(--db-body);margin:7px 0 0}
.auth-note{margin:18px 0 0;text-align:center;font-size:13px;color:var(--db-body)}

/* US phone input: fixed flag + +1 prefix, digits format as (313) 555-0123. */
.phone-group{display:flex;align-items:stretch}
.phone-prefix{flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;
  background:var(--db-ivory);border:1px solid #d8d2c8;border-right:0;border-radius:12px 0 0 12px;
  font-size:15px;font-weight:650;color:var(--db-charcoal)}
.phone-prefix .flag-us{width:22px;height:16px;display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(39,36,42,.18)}
.phone-group .auth-input{border-radius:0 12px 12px 0}
.phone-group .auth-input:focus{box-shadow:0 0 0 3px rgba(197,164,109,.4)}

/* WhatsApp "same as phone" checkbox. */
.auth-check{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;font-size:14px;
  line-height:1.5;color:var(--db-charcoal);cursor:pointer}
.auth-check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--db-burgundy);cursor:pointer}
.auth-privacy{font-size:13px;line-height:1.55;color:var(--db-body);margin:0 0 20px}
.auth-input[readonly]{background:var(--db-ivory);color:var(--db-body)}

/* Password requirements + strength meter (informational only; the server
   policy — 10+ characters, letter + number on registration — is unchanged). */
.pw-reqs{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;font-size:13px;color:var(--db-body)}
.pw-reqs li::before{content:"○";display:inline-block;width:18px;color:#a39e9a}
.pw-reqs li.is-met{color:var(--db-charcoal)}
.pw-reqs li.is-met::before{content:"●";color:var(--db-burgundy)}
.pw-strength{display:flex;gap:6px;margin-top:12px}
.pw-strength .pw-seg{height:4px;flex:1;background:#e8e2d6;border-radius:2px}
.pw-strength[data-level="1"] .pw-seg:nth-child(1){background:#b42318}
.pw-strength[data-level="2"] .pw-seg:nth-child(-n+2){background:#dc6803}
.pw-strength[data-level="3"] .pw-seg:nth-child(-n+3){background:#c5a46d}
.pw-strength[data-level="4"] .pw-seg{background:var(--db-burgundy)}
.pw-strength-label{font-size:12.5px;color:var(--db-body);margin:6px 0 0}
.pw-match{font-size:13px;margin:8px 0 0;min-height:19px}
.pw-match.is-ok{color:#067647}
.pw-match.is-bad{color:var(--db-error)}

/* Compact auth footer links. */
.auth-footer-links{display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:flex-end}
.auth-footer-links a{white-space:nowrap}
/* v2.1: the site footer rule `footer.site a` (0,1,2) beats the plain
   `.auth-footer-inner a` (0,1,1), so the auth links rendered near-white on
   the cream footer. This stronger selector wins regardless of load order. */
footer.site.auth-footer .auth-footer-inner a{color:var(--db-charcoal)}
footer.site.auth-footer .auth-footer-inner a:hover{color:var(--db-burgundy);text-decoration:underline}
/* v2.1: on long forms (signup) the brand panel stretched to the full form
   height and its centred content sat below the fold. Top-align the brand
   content on the wide card so the headline is visible on first paint.
   (position:sticky was tried first and does not engage inside the card's
   overflow:hidden, so it is deliberately not used here.) */
@media(min-width:861px){
  .auth-card-wide .auth-brand{justify-content:flex-start}
}
@media(max-width:860px){
  .auth-names{grid-template-columns:1fr}
  .auth-footer-inner{justify-content:center;text-align:center}
  .auth-footer-links{justify-content:center}
}
