/* Public landing & sign-in gate: 2026 proposal. No application or auth logic changes. */
#authGate.auth-gate{
  display:flex;align-items:safe center;justify-content:center;overflow:auto;
  background:radial-gradient(circle at 2% 100%,#d8e9e8 0,transparent 38%),
    radial-gradient(circle at 90% 5%,#ebe8fb 0,transparent 35%),#f7f8fa;
  padding:clamp(16px,3vw,48px);min-height:100dvh;
}
#authGate.auth-gate.hidden{display:none!important}
#authGate .landing-wrap{width:min(1260px,100%);min-height:min(740px,calc(100dvh - 70px));display:grid;grid-template-columns:minmax(0,1.13fr) minmax(365px,.87fr);border:1px solid #dbe2e7;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 32px 100px rgba(32,55,70,.11)}
#authGate .landing-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(28px,4.1vw,62px);background:linear-gradient(152deg,#17394b 0%,#244e56 55%,#224c55 100%);color:#fff;isolation:isolate}
#authGate .landing-story:before{content:"";position:absolute;z-index:-1;width:640px;height:640px;border:1px solid #ffffff2d;border-radius:50%;right:-340px;bottom:-330px;box-shadow:0 0 0 55px #ffffff0a,0 0 0 110px #ffffff07}
#authGate .landing-brand{display:inline-flex;align-items:center;gap:13px;font-size:.86rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
#authGate .landing-mark{display:grid;place-items:center;width:42px;height:42px;background:#c9ede0;color:#1a4645;border-radius:13px;font-size:1.35rem;font-weight:900;letter-spacing:-.12em;padding-right:3px}
#authGate .landing-story-main{margin:60px 0 50px}
#authGate .landing-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#c7e7e2;font-size:.78rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
#authGate .landing-eyebrow:before{content:"";width:24px;height:2px;background:#a9d7cd}
#authGate .landing-story h1{font-size:clamp(2.35rem,4.4vw,4.55rem);line-height:1.06;letter-spacing:-.052em;max-width:12ch;margin:25px 0 21px;font-weight:800;color:#fff}
#authGate .landing-intro{font-size:1.03rem;line-height:1.7;color:#e0eeee;max-width:47ch;margin:0}
#authGate .landing-preview{background:#ffffff14;border:1px solid #ffffff35;border-radius:22px;padding:21px;max-width:490px;backdrop-filter:blur(5px);box-shadow:0 14px 45px #0e2c3428}
#authGate .landing-preview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;font-size:.81rem;color:#f2ffff;font-weight:750}
#authGate .landing-preview-top span:last-child{font-size:.72rem;color:#d1e7e6;font-weight:600}
#authGate .landing-preview-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:10px;height:90px}
#authGate .landing-preview-bars span{height:var(--h);background:linear-gradient(0deg,#70b9bb,#d0f0dc);border-radius:8px 8px 4px 4px;opacity:.92}
#authGate .landing-preview-footer{border-top:1px solid #ffffff2c;margin-top:15px;padding-top:14px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.73rem;color:#e1eff0}
#authGate .landing-features{display:flex;gap:13px 22px;flex-wrap:wrap;margin-top:24px;color:#deeeee;font-size:.77rem;font-weight:600}
#authGate .landing-features span::before{content:"✓";display:inline-grid;place-items:center;margin-right:7px;width:19px;height:19px;border-radius:50%;background:#ffffff29;color:#d0f0dc;font-weight:900}
#authGate .landing-signin{display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,4vw,68px);min-width:0;background:linear-gradient(145deg,#fff,#fcfdfb)}
#authGate .auth-card{width:100%;max-width:450px;padding:0;margin:auto;box-shadow:none;border:0;background:transparent}
#authGate .landing-signin-eyebrow{color:#426a64;font-size:.75rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase;margin:0 0 15px}
#authGate .auth-card h2{font-size:clamp(1.8rem,2.4vw,2.4rem);letter-spacing:-.045em;line-height:1.16;color:#173b46;margin:0 0 14px}
#authGate .landing-signin-intro{font-size:.94rem;color:#60717b;line-height:1.6;margin:0 0 27px}
#authGate .auth-card label{display:block;margin:17px 0 7px;color:#23434c;font-size:.85rem;font-weight:760}
#authGate .auth-card input{margin-top:7px;min-height:52px;background:#fff;border:1px solid #cad7d9;border-radius:12px;color:#173b46;font-size:.96rem}
#authGate .auth-card input:focus-visible{outline:3px solid #87c4b750;outline-offset:1px;border-color:#398d84}
#authGate .auth-actions{gap:11px;margin-top:23px;display:grid;grid-template-columns:1fr 1fr}
#authGate .auth-actions button{min-height:51px;border-radius:12px;font-size:.91rem;font-weight:800;cursor:pointer}
#authGate #authSignIn{background:#216c66;color:#fff;border:1px solid #216c66;box-shadow:none}
#authGate #authSignIn:hover{background:#185952}
#authGate #authSignUp{background:#f5faf7;color:#205f5b;border:1px solid #bbd9d0;box-shadow:none}
#authGate #authSignUp:hover{background:#e8f3ed}
#authGate #authForgotPassword{display:block;width:fit-content;margin:18px auto 0;background:none;border:none;color:#286d67;text-decoration:underline;text-underline-offset:3px;font-size:.81rem}
#authGate #authMessage{font-size:.84rem;line-height:1.5;min-height:1.2em;margin:20px 0 0}
#authGate .support-contact{font-size:.83rem;text-align:center}
#authGate .landing-account-note{border-top:1px solid #e4ebea;margin-top:26px;padding-top:19px;font-size:.79rem;color:#64747c;line-height:1.58}
#authGate .landing-account-note strong{color:#2c5960}
@media(max-width:940px){
 #authGate .landing-wrap{grid-template-columns:1fr;max-width:650px;min-height:auto}
 #authGate .landing-story{padding:30px 34px}
 #authGate .landing-story-main{margin:32px 0 25px}
 #authGate .landing-story h1{font-size:clamp(2.1rem,6vw,3.4rem);max-width:15ch;margin:15px 0}
 #authGate .landing-preview{display:none}
 #authGate .landing-signin{padding:36px 34px}
}
@media(max-width:480px){
 #authGate.auth-gate{padding:0;align-items:stretch}
 #authGate .landing-wrap{border:0;border-radius:0;min-height:100dvh}
 #authGate .landing-story{padding:24px 22px 25px}
 #authGate .landing-story-main{margin:24px 0 12px}
 #authGate .landing-story h1{font-size:2.15rem}
 #authGate .landing-intro{font-size:.88rem;line-height:1.55}
 #authGate .landing-features{margin-top:17px;gap:10px;font-size:.72rem}
 #authGate .landing-signin{padding:28px 22px 38px}
 #authGate .auth-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#authGate *{scroll-behavior:auto;transition:none!important}}


/* V2: premium product-led illustration; illustrative content, not actual outcomes. */
#authGate.auth-gate{background:radial-gradient(circle at 16% 15%,#d8e5ea 0,transparent 40%),radial-gradient(circle at 90% 100%,#e8e5f3 0,transparent 37%),#f5f6f8}
#authGate .landing-wrap{grid-template-columns:minmax(0,1.18fr) minmax(375px,.82fr);border-radius:30px;box-shadow:0 35px 100px #2039471c}
#authGate .landing-story{background:linear-gradient(148deg,#162f43 0%,#234b56 56%,#3b596b 100%);padding:clamp(28px,4vw,58px)}
#authGate .landing-story:after{content:"";position:absolute;z-index:-1;width:320px;height:320px;left:-170px;top:140px;border-radius:50%;background:#96bfc022;filter:blur(48px)}
#authGate .landing-story h1{font-size:clamp(2.5rem,3.65vw,3.9rem);max-width:16ch;letter-spacing:-.055em;line-height:1.09}
#authGate .landing-story-main{margin:38px 0 28px}
#authGate .landing-intro{max-width:54ch;font-size:.98rem;line-height:1.65;color:#daebed}
#authGate .landing-features{gap:10px;display:flex}
#authGate .landing-features span{border:1px solid #ffffff29;background:#ffffff0b;border-radius:100px;padding:8px 12px;color:#e1f0f2;font-size:.72rem}
#authGate .landing-features span::before{content:"";width:7px;height:7px;background:#a9e4d3;display:inline-block;border-radius:50%;margin-right:9px;vertical-align:middle}
#authGate .landing-product{background:#f6f8fe;border:1px solid #ffffff88;border-radius:20px;color:#1b2d48;overflow:hidden;box-shadow:0 25px 60px #10293850;transform:rotate(-1deg);max-width:510px;margin-top:12px}
#authGate .landing-product-chrome{background:#fff;border-bottom:1px solid #e7eaf4;display:flex;align-items:center;gap:5px;padding:11px 15px}
#authGate .landing-dot{width:7px;height:7px;border-radius:50%;background:#f1b4ab}
#authGate .landing-dot:nth-child(2){background:#efd49a}
#authGate .landing-dot:nth-child(3){background:#98d9c4}
#authGate .landing-product-address{color:#8992a9;margin-left:8px;font-size:.63rem;letter-spacing:.02em}
#authGate .landing-product-body{padding:19px}
#authGate .landing-product-top{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:14px}
#authGate .landing-product-top>div{display:flex;flex-direction:column;gap:5px}
#authGate .landing-product-overline{font-size:.61rem;color:#647394;letter-spacing:.11em;font-weight:850}
#authGate .landing-product-top strong{font-size:.94rem;color:#23324d}
#authGate .landing-product-tag{font-size:.62rem;color:#747f99;border:1px solid #dce1ee;padding:5px 7px;border-radius:20px;white-space:nowrap}
#authGate .landing-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
#authGate .landing-activity-card{background:white;border:1px solid #e4e8f2;border-radius:14px;padding:13px;min-width:0}
#authGate .landing-activity-heading{display:flex;align-items:center;gap:8px;font-size:.79rem;font-weight:800;color:#213e52}
#authGate .landing-activity-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e5f3ef;color:#168477;font-size:1.05rem}
#authGate .landing-memory-card .landing-activity-icon{background:#ece8fc;color:#6d5ccd}
#authGate .landing-activity-visual{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:13px 0;max-width:190px}
#authGate .landing-activity-visual span{display:grid;place-items:center;background:#f1f5f8;color:#278f88;aspect-ratio:1;border-radius:7px;font-size:.8rem}
#authGate .landing-activity-visual span:nth-child(3n){color:#7462c7;background:#f0ecfa}
#authGate .landing-memory-visual{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:19px 0 17px}
#authGate .landing-memory-visual span{display:grid;place-items:center;aspect-ratio:1;border-radius:8px;background:#ecebf9;color:#6659ae;font-weight:850;font-size:.8rem}
#authGate .landing-memory-visual span:last-child{background:#d9f1ed;color:#117b70}
#authGate .landing-activity-card small{font-size:.61rem;color:#788498}
#authGate .landing-progress-strip{margin-top:11px;border-radius:12px;border:1px solid #e0e5f1;background:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:16px}
#authGate .landing-progress-strip>div:first-child{display:flex;flex-direction:column;gap:4px}
#authGate .landing-progress-strip strong{font-size:.75rem;color:#283a59}
#authGate .landing-spark{width:40%;max-width:170px;height:44px;flex-shrink:0}
#authGate .landing-spark svg{width:100%;height:100%}
#authGate .landing-signin{background:#fff}
#authGate .auth-card h2{letter-spacing:-.05em;font-weight:800}
#authGate #authSignIn{background:#225b65;border-color:#225b65}
#authGate #authSignIn:hover{background:#174750}
#authGate #authSignUp{background:#f4f6fa;border-color:#d9dfeb;color:#254353}
@media(max-width:940px){
 #authGate .landing-wrap{grid-template-columns:1fr;grid-auto-rows:max-content}
 #authGate .landing-story h1{max-width:18ch}
 #authGate .landing-product{transform:none;max-width:100%}
 #authGate .landing-story-main{margin:25px 0 24px}
}
@media(max-width:480px){
 #authGate .landing-story h1{font-size:2rem}
 #authGate .landing-product-body{padding:12px}
 #authGate .landing-product-grid{gap:7px}
 #authGate .landing-activity-card{padding:9px}
 #authGate .landing-activity-visual{gap:3px}
 #authGate .landing-activity-card small{font-size:.55rem}
 #authGate .landing-progress-strip{padding:9px}
 #authGate .landing-progress-strip strong{font-size:.66rem}
 #authGate .landing-product-tag{font-size:.55rem}
}


/* GLIAX brand exploration: ink, ivory and disciplined energetic accents. */
#authGate.auth-gate{background:radial-gradient(circle at 12% 18%,#fbe7ee 0,transparent 31%),radial-gradient(circle at 92% 82%,#eeeafd 0,transparent 36%),#f7f5f0}
#authGate .landing-wrap{box-shadow:0 38px 110px #19243a20;border:1px solid #e9e5ea}
#authGate .landing-story{background:#19243a;isolation:isolate}
#authGate .landing-story::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 85% 12%,#e6338b17,transparent 28%),radial-gradient(circle at 0% 100%,#ffd44f12,transparent 33%);z-index:-1}
#authGate .landing-mark{background:#e6338b!important;color:#fff!important;border-color:#e6338b!important;box-shadow:0 6px 18px #e6338b36}
#authGate .landing-story h1{color:#fff}
#authGate .landing-story h1::after{content:"";display:block;margin-top:18px;width:62px;height:6px;background:#ffd44f;border-radius:12px}
#authGate .landing-intro{color:#d3d7e2}
#authGate .landing-features span{color:#f6f4fa;border-color:#ffffff2f}
#authGate .landing-features span::before{background:#ffd44f}
#authGate .landing-product{background:#f7f5f0;border-color:#ffffffa8;box-shadow:0 30px 80px #080e2659}
#authGate .landing-product-chrome{border-bottom-color:#ede9ee}
#authGate .landing-product-overline{color:#8b6188}
#authGate .landing-activity-icon{background:#ffe3ef;color:#d02c7b}
#authGate .landing-memory-card .landing-activity-icon{background:#eeeafb;color:#7362b8}
#authGate .landing-activity-visual span{background:#fff0f5;color:#d02c7b}
#authGate .landing-activity-visual span:nth-child(3n){background:#fff3c8;color:#8e6414}
#authGate .landing-memory-visual span{background:#f0edfb;color:#6a5bab}
#authGate .landing-memory-visual span:last-child{background:#ffe1ec;color:#c32671}
#authGate .landing-spark svg path:first-child{stroke:#e6338b}
#authGate .landing-spark svg path:last-child{fill:#e6338b}
#authGate .landing-signin{background:#fffefa}
#authGate .landing-signin-eyebrow{color:#bd2d70}
#authGate .auth-card h2{color:#19243a}
#authGate .auth-card label{color:#263049}
#authGate .auth-card input{border-color:#dddde7}
#authGate .auth-card input:focus-visible{border-color:#b72a70;outline-color:#e6338b40}
#authGate #authSignIn{background:#19243a;border-color:#19243a}
#authGate #authSignIn:hover{background:#303a57;border-color:#303a57}
#authGate #authSignUp{background:#fff0f5;border-color:#e9b7d0;color:#a91f65}
#authGate #authSignUp:hover{background:#ffe1ed}
#authGate #authForgotPassword{color:#a92668}
#authGate .landing-account-note strong{color:#24314a}
#authGate .landing-product-tag{border-color:#eadce8;color:#9a5382}
@media(max-width:480px){#authGate.auth-gate{background:#f7f5f0}}


/* GLIAX auth actions: ensure legacy global button rules never repaint them. */
#authGate .auth-card .auth-actions #authSignIn.primary-btn{
  background:#19243a!important;
  border:1px solid #19243a!important;
  color:#fff!important;
  box-shadow:0 4px 0 #111929!important;
}
#authGate .auth-card .auth-actions #authSignIn.primary-btn:hover{
  background:#303a57!important;border-color:#303a57!important;
}
#authGate .auth-card .auth-actions #authSignUp.secondary-btn{
  background:#fff0f5!important;
  border:1px solid #e9b7d0!important;
  color:#a91f65!important;
  box-shadow:none!important;
}
#authGate .auth-card .auth-actions #authSignUp.secondary-btn:hover{
  background:#ffe1ed!important;
}
#authGate .auth-card .auth-actions button:focus-visible{
  outline:3px solid #e6338b!important;outline-offset:3px;
}
