/* Dezza account/auth surfaces — light premium direction */
:root{
  --auth-cream:#fbf7ef;
  --auth-paper:#ffffff;
  --auth-navy:#002253;
  --auth-blue:#0540ad;
  --auth-sky:#3b68f6;
  --auth-orange:#ff6a0a;
  --auth-muted:#66666b;
  --auth-line:rgba(0,34,83,.12);
  --auth-soft:#f2f5fb;
  --auth-danger:#cf0a2c;
  --auth-success:#168a4a;
}
*{box-sizing:border-box}
html,body{width:100%;min-height:100%;margin:0;padding:0;overflow-x:hidden;-webkit-text-size-adjust:100%}
body.auth-light{
  color:var(--auth-navy);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(760px 460px at 100% 2%,rgba(59,104,246,.16),transparent 62%),
    radial-gradient(580px 390px at 0% 18%,rgba(255,106,10,.08),transparent 58%),
    var(--auth-cream);
}
body.auth-light::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,34,83,.035) 1px,transparent 1px),linear-gradient(rgba(0,34,83,.03) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.42),transparent 72%);
}
body.auth-light .ds-topbar{width:min(1120px,calc(100vw - 28px));margin:0 auto!important;padding:14px 0!important;position:relative;z-index:2}
body.auth-light .ds-brand-logo{filter:brightness(0)!important;opacity:.92!important;height:44px}
body.auth-light .ds-topbar-right,body.auth-light .ds-topbar-right span{color:var(--auth-navy)!important}
body.auth-light .ds-login-btn,body.auth-light #userMenuBtn{border:1px solid var(--auth-line)!important;background:#fff!important;color:var(--auth-navy)!important;border-radius:999px!important;box-shadow:0 8px 22px rgba(0,34,83,.07)!important;text-transform:none!important;font-weight:850!important;letter-spacing:0!important;backdrop-filter:none!important}
body.auth-light .ds-menu{background:#fff!important;border-color:var(--auth-line)!important;box-shadow:0 18px 46px rgba(0,34,83,.10)!important}
body.auth-light .ds-menu a,body.auth-light .ds-menu button{color:var(--auth-navy)!important}
body.auth-light .ds-menu button{color:var(--auth-muted)!important}
body.auth-light .ds-menu a:hover,body.auth-light .ds-menu button:hover{background:var(--auth-soft)!important}
.auth-shell{
  position:relative;
  z-index:1;
  width:min(1120px,calc(100vw - 28px));
  min-height:calc(100vh - 84px);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,500px);
  gap:clamp(24px,5vw,76px);
  align-items:center;
  padding:clamp(24px,5vw,64px) 0 max(42px,env(safe-area-inset-bottom));
}
.auth-hero{max-width:560px}.auth-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:7px 10px;border-radius:999px;border:1px solid rgba(5,64,173,.13);background:#eef3ff;color:var(--auth-blue);font-size:11px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.auth-hero h1{margin:0;color:var(--auth-navy);font-size:clamp(42px,7vw,76px);line-height:.9;letter-spacing:-.065em}.auth-hero p{margin:18px 0 0;color:var(--auth-muted);font-size:clamp(16px,2vw,20px);line-height:1.5;max-width:36rem}.auth-card{position:relative;width:100%;padding:clamp(22px,4vw,34px);border-radius:30px;border:1px solid var(--auth-line);background:var(--auth-paper);box-shadow:0 24px 70px rgba(0,34,83,.11);overflow:hidden}.auth-card::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--auth-blue),var(--auth-sky),var(--auth-orange));}.auth-card-inner{position:relative;z-index:1}.auth-title-row{margin-bottom:22px}.auth-title-row h2{margin:0 0 8px;color:var(--auth-navy);font-size:clamp(28px,5vw,38px);line-height:1;letter-spacing:-.045em}.auth-title-row p{margin:0;color:var(--auth-muted);line-height:1.45}.auth-form{display:grid;gap:15px}.field-group{display:grid;gap:7px}.field-group label{color:var(--auth-navy);font-size:14px;font-weight:900}.auth-input{width:100%;min-width:0;height:54px;padding:0 15px;border-radius:16px;border:1px solid rgba(0,34,83,.14);background:#fff;color:var(--auth-navy);box-shadow:0 8px 20px rgba(0,34,83,.045);font:700 16px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;outline:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}.auth-input::placeholder{color:#969ba5}.auth-input:focus{border-color:rgba(5,64,173,.36);box-shadow:0 0 0 4px rgba(5,64,173,.10),0 10px 26px rgba(0,34,83,.08)}.auth-submit,.auth-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin-top:2px;border:0;border-radius:999px;background:var(--auth-blue);color:#fff;text-decoration:none;font-weight:950;font-size:16px;cursor:pointer;box-shadow:0 16px 32px rgba(5,64,173,.22);transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}.auth-submit:hover,.auth-btn:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 20px 38px rgba(5,64,173,.26)}.auth-links{display:grid;gap:12px;margin-top:18px;color:var(--auth-muted);font-weight:750}.auth-links a{color:var(--auth-blue);text-decoration:none;font-weight:950;border-bottom:1px solid rgba(5,64,173,.22);width:max-content;max-width:100%}.auth-links a:hover{border-bottom-color:var(--auth-blue)}.auth-register,.auth-note{padding:13px 14px;border-radius:18px;border:1px solid var(--auth-line);background:var(--auth-soft);color:#364156}.flashes{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:8px}.flashes li,.flash{padding:11px 12px;border-radius:14px;border:1px solid var(--auth-line);background:var(--auth-soft);color:var(--auth-navy);font-weight:750;line-height:1.35}.flashes li.error,.flash.error{border-color:rgba(207,10,44,.20);background:#fff2f2;color:#9d1425}.flashes li.success,.flash.success{border-color:rgba(22,138,74,.20);background:#effaf4;color:#126b3c}.auth-back{margin-top:14px;text-align:center}.auth-back a{color:var(--auth-blue);font-weight:900;text-decoration:none}.auth-back a:hover{text-decoration:underline}.auth-logo-card{display:none}
@media(max-width:820px){.auth-shell{width:min(100% - 24px,540px);min-height:auto;display:block;padding:20px 0 max(34px,env(safe-area-inset-bottom))}.auth-hero{margin:8px 0 18px}.auth-hero h1{font-size:42px}.auth-hero p{font-size:15px;margin-top:12px}.auth-card{border-radius:26px;padding:22px}}
@media(max-width:430px){body.auth-light .ds-topbar{width:calc(100vw - 24px);padding:10px 0!important}.auth-shell{width:100%;padding:10px 12px max(28px,env(safe-area-inset-bottom))}.auth-hero{display:none}.auth-card{border-radius:24px;padding:20px}.auth-title-row h2{font-size:30px}.auth-input,.auth-submit{height:52px}}

/* Hard overrides against the legacy dark global form/autofill rules. */
body.auth-light .auth-card input.auth-input,
body.auth-light .auth-card input.auth-input:-webkit-autofill,
body.auth-light .auth-card input.auth-input:-webkit-autofill:hover,
body.auth-light .auth-card input.auth-input:-webkit-autofill:focus{
  background:#fff !important;
  color:var(--auth-navy) !important;
  border-color:rgba(0,34,83,.14) !important;
  -webkit-text-fill-color:var(--auth-navy) !important;
  box-shadow:0 8px 20px rgba(0,34,83,.045), 0 0 0 1000px #fff inset !important;
}
body.auth-light .auth-submit{
  display:flex !important;
  border:1px solid var(--auth-blue) !important;
  background:var(--auth-blue) !important;
  color:#fff !important;
  border-radius:999px !important;
  box-shadow:0 16px 32px rgba(5,64,173,.22) !important;
}


/* Login modal fallback when shown over light surfaces. */
.ds-login-modal .ds-login-field input,
.ds-login-modal .ds-login-field input:-webkit-autofill,
.ds-login-modal .ds-login-field input:-webkit-autofill:hover,
.ds-login-modal .ds-login-field input:-webkit-autofill:focus{
  background:#fff !important;
  background-color:#fff !important;
  color:var(--auth-navy,#002253) !important;
  -webkit-text-fill-color:var(--auth-navy,#002253) !important;
  caret-color:var(--auth-navy,#002253) !important;
  border-color:rgba(0,34,83,.14) !important;
  box-shadow:0 8px 20px rgba(0,34,83,.045), 0 0 0 1000px #fff inset !important;
}
