/* Theme-aware public login popup. Loaded after frontend theme/customization CSS. */
body.guest-shell.modal-open{overflow:hidden}
body.guest-shell .login-popup{--login-accent:var(--primary);--login-accent-2:var(--blue);--login-ink:#10233f;--login-showcase:#eff7ff;--login-showcase-2:#dbeefe;--login-panel:#ffffff;--login-field:#f8fafc;--login-line:#dbe5ef;--login-muted:#68788e;--login-radius:34px;z-index:520;padding:clamp(12px,2vh,24px);align-items:center}
body.guest-shell .login-popup-backdrop{background:rgba(4,12,24,.7);backdrop-filter:blur(14px) saturate(120%)}
body.guest-shell .login-popup-panel{position:relative;display:grid;grid-template-columns:minmax(260px,.76fr) minmax(420px,1.24fr);width:min(1080px,calc(100vw - 32px));max-height:min(calc(100dvh - 24px),860px);overflow:hidden;border:1px solid color-mix(in srgb,var(--login-accent) 16%,#d7e0eb);border-radius:var(--login-radius);background:var(--login-panel);box-shadow:0 32px 90px rgba(8,20,40,.22);isolation:isolate}
body.guest-shell .login-popup-close{position:absolute;z-index:8;top:18px;right:18px;width:42px;height:42px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--login-line) 82%,transparent);border-radius:14px;background:color-mix(in srgb,var(--login-panel) 88%,transparent);color:var(--login-ink);box-shadow:0 8px 22px rgba(15,35,63,.08);backdrop-filter:blur(12px)}
body.guest-shell .login-popup-close:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--login-accent) 38%,var(--login-line));color:var(--login-accent)}
body.guest-shell .login-popup-close svg{width:18px;height:18px}
body.guest-shell .login-popup-showcase{position:relative;min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:28px 30px;color:#fff;background:linear-gradient(145deg,var(--login-showcase),var(--login-showcase-2));isolation:isolate}
body.guest-shell .login-popup-showcase:after{content:"";position:absolute;z-index:-1;width:220px;height:220px;right:-90px;bottom:-90px;border-radius:50%;background:color-mix(in srgb,var(--login-accent) 26%,transparent);filter:blur(34px);opacity:.45}
body.guest-shell .login-popup-showcase-pattern{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
body.guest-shell .login-popup-showcase-pattern span{position:absolute;display:block;border:1px solid color-mix(in srgb,var(--login-accent) 12%,rgba(255,255,255,.2));border-radius:999px}
body.guest-shell .login-popup-showcase-pattern span:nth-child(1){width:310px;height:310px;right:-150px;top:-120px}
body.guest-shell .login-popup-showcase-pattern span:nth-child(2){width:190px;height:190px;right:-72px;top:-48px}
body.guest-shell .login-popup-showcase-pattern span:nth-child(3){width:170px;height:1px;left:34px;bottom:126px;border:0;background:linear-gradient(90deg,rgba(255,255,255,.45),transparent)}
body.guest-shell .login-popup-showcase-pattern span:nth-child(4){width:9px;height:9px;left:38px;bottom:122px;border:0;background:var(--login-accent);box-shadow:0 0 0 7px color-mix(in srgb,var(--login-accent) 18%,transparent),110px -58px 0 -2px rgba(255,255,255,.72),200px 38px 0 -3px rgba(255,255,255,.5)}
body.guest-shell .login-popup-brand-row{display:flex;align-items:center;gap:13px;position:relative;z-index:2}
body.guest-shell .login-popup-logo{width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.11);backdrop-filter:blur(12px)}
body.guest-shell .login-popup-logo img{width:34px;height:34px}
body.guest-shell .login-popup-brand-row>div{display:grid;line-height:1.15}
body.guest-shell .login-popup-brand-row strong{font-size:.92rem;letter-spacing:-.015em}
body.guest-shell .login-popup-brand-row small{margin-top:4px;color:rgba(255,255,255,.66);font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;font-weight:750}
body.guest-shell .login-popup-showcase-copy{position:relative;z-index:2;margin:36px 0 24px}
body.guest-shell .login-popup-kicker{display:inline-flex;padding:6px 10px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(255,255,255,.08);font-size:.66rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em;color:color-mix(in srgb,var(--login-accent) 30%,#fff)}
body.guest-shell .login-popup-showcase-copy h2{max-width:360px;margin:14px 0 10px;font-size:clamp(1.7rem,2.4vw,2.45rem);line-height:1.06;letter-spacing:-.05em;color:#fff}
body.guest-shell .login-popup-showcase-copy p{max-width:360px;margin:0;color:rgba(240,247,255,.74);font-size:.85rem;line-height:1.58}
body.guest-shell .login-popup-trust-row{position:relative;z-index:2;display:grid;gap:9px}
body.guest-shell .login-popup-trust-row span{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.76);font-size:.68rem;font-weight:680}
body.guest-shell .login-popup-trust-row svg{width:16px;height:16px;color:color-mix(in srgb,var(--login-accent) 42%,#fff)}
body.guest-shell .login-popup-form-pane{min-width:0;overflow-y:auto;padding:34px 38px 20px;background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--login-accent) 8%,transparent),transparent 34%),var(--login-panel);color:var(--login-ink);scrollbar-width:thin}
body.guest-shell .login-popup-form-head{padding-right:28px}
body.guest-shell .login-popup-mobile-brand{display:none}
body.guest-shell .login-popup-eyebrow{background:color-mix(in srgb,var(--login-accent) 11%,#fff);color:color-mix(in srgb,var(--login-accent) 82%,#172033)}
body.guest-shell .login-popup-form-head h1{margin:9px 0 6px;font-size:2rem;line-height:1.08;letter-spacing:-.045em;color:var(--login-ink)}
body.guest-shell .login-popup-form-head p{margin:0 0 16px;color:var(--login-muted);font-size:.84rem;line-height:1.55}
body.guest-shell .login-popup-messages{display:grid;gap:8px;margin:0 0 18px}
body.guest-shell .login-popup-notice{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--login-line);border-radius:12px;background:#f8fafc;font-size:.72rem;line-height:1.4}
body.guest-shell .login-popup-notice strong{font-size:.72rem}.login-popup-notice.is-success{border-color:#bbefd0;background:#effcf4;color:#166534}.login-popup-notice.is-info{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.login-popup-notice.is-warning{border-color:#fde68a;background:#fffbeb;color:#92400e}.login-popup-notice.is-danger{border-color:#fecaca;background:#fff1f2;color:#b42318}
body.guest-shell .login-popup-form{display:grid;gap:12px}
body.guest-shell .login-popup-field{margin:0}
body.guest-shell .login-popup-field .form-label{display:block;margin-bottom:7px;color:var(--login-ink);font-size:.75rem;font-weight:800}
body.guest-shell .login-popup-input-shell{position:relative;display:flex;align-items:center}
body.guest-shell .login-popup-input-icon{position:absolute;left:14px;display:grid;place-items:center;color:color-mix(in srgb,var(--login-accent) 78%,#66758a);pointer-events:none}
body.guest-shell .login-popup-input-icon svg{width:18px;height:18px}
body.guest-shell .login-popup-input{width:100%;min-height:46px;padding:10px 14px 10px 43px;border:1px solid var(--login-line);border-radius:13px;outline:0;background:var(--login-field);color:var(--login-ink);font-size:.85rem;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
body.guest-shell .login-popup-input::placeholder{color:color-mix(in srgb,var(--login-muted) 70%,#fff)}
body.guest-shell .login-popup-input:hover{border-color:color-mix(in srgb,var(--login-accent) 35%,var(--login-line))}
body.guest-shell .login-popup-input:focus{border-color:var(--login-accent);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--login-accent) 12%,transparent)}
body.guest-shell .login-popup-field.has-error .login-popup-input{border-color:#dc2626}
body.guest-shell .login-popup-field-error{display:block;margin-top:6px;color:#b91c1c;font-size:.69rem;font-weight:650}
body.guest-shell .login-popup-password-shell .login-popup-input{padding-right:64px}
body.guest-shell .login-popup-password-toggle{position:absolute;right:8px;min-width:48px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--login-accent);font-size:.7rem;font-weight:800}
body.guest-shell .login-popup-password-toggle:hover{background:color-mix(in srgb,var(--login-accent) 10%,transparent)}
body.guest-shell .login-popup .captcha-field{margin:0;padding:10px 11px 11px;border:1px solid var(--login-line);border-radius:14px;background:color-mix(in srgb,var(--login-field) 84%,#fff)}
body.guest-shell .login-popup .captcha-field .form-label{font-size:.73rem;color:var(--login-ink)}
body.guest-shell .login-popup .captcha-challenge{display:grid;grid-template-columns:minmax(220px,260px) max-content;align-items:center;justify-content:start;gap:10px;flex-wrap:nowrap}
body.guest-shell .login-popup .captcha-image-frame{display:grid;place-items:center;width:260px;max-width:100%;aspect-ratio:260/84;min-width:0;overflow:hidden;border-radius:10px;background:#fff}
body.guest-shell .login-popup .captcha-image-frame img{display:block;width:100%;height:100%;aspect-ratio:260/84;object-fit:contain;object-position:center;background:#fff}
body.guest-shell .login-popup .captcha-refresh{min-height:46px;padding:7px 10px;border-color:var(--login-line);background:#fff;font-size:.66rem}
body.guest-shell .login-popup .captcha-input{min-height:42px;margin-top:10px;border-color:var(--login-line);border-radius:11px;background:#fff;color:var(--login-ink)}
body.guest-shell .login-popup .form-help{display:none}
body.guest-shell .login-popup-form-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:-2px}
body.guest-shell .login-popup-remember{display:flex;align-items:center;gap:8px;color:var(--login-muted);font-size:.74rem;cursor:pointer}
body.guest-shell .login-popup-remember input{accent-color:var(--login-accent)}
body.guest-shell .login-popup-form-meta a{font-size:.74rem;font-weight:800;color:var(--login-accent)}
body.guest-shell .login-popup-submit{width:100%;min-height:48px;border-radius:13px;background:linear-gradient(135deg,var(--login-accent),color-mix(in srgb,var(--login-accent-2) 74%,var(--login-accent)));box-shadow:0 10px 24px color-mix(in srgb,var(--login-accent) 18%,transparent)}
body.guest-shell .login-popup-submit:hover{filter:brightness(.98);box-shadow:0 18px 36px color-mix(in srgb,var(--login-accent) 28%,transparent)}
body.guest-shell .login-popup-new-account{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:19px;padding-top:17px;border-top:1px solid var(--login-line);color:var(--login-muted);font-size:.72rem}
body.guest-shell .login-popup-new-account a{display:inline-flex;align-items:center;gap:6px;color:var(--login-accent);font-weight:850}
body.guest-shell .login-popup-new-account svg{width:14px;height:14px}
body.guest-shell .login-popup-security-note{display:flex;align-items:flex-start;gap:7px;margin:15px 0 0;color:var(--login-muted);font-size:.63rem;line-height:1.5}
body.guest-shell .login-popup-security-note svg{width:14px;height:14px;flex:0 0 14px;margin-top:1px;color:var(--login-accent)}
body.guest-shell .login-popup-auto-trigger{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
html.no-js body.guest-shell .login-popup [data-captcha-image][data-captcha-src]{display:none}
html.no-js body.guest-shell .login-popup .captcha-noscript-image{display:block;width:100%;height:100%;aspect-ratio:260/84;object-fit:contain;object-position:center;background:#fff}

/* Oceanic Pulse — luminous wave glass */
body.frontend-theme-oceanic_pulse .login-popup{--login-accent:#18b8e6;--login-accent-2:#56e4dd;--login-showcase:#062b45;--login-showcase-2:#087b91;--login-panel:#f8fdff;--login-field:#f0faff;--login-line:#cfe8f2;--login-ink:#07334d;--login-muted:#527287;--login-radius:40px}
body.frontend-theme-oceanic_pulse .login-popup-showcase:before{content:"";position:absolute;inset:auto -18% 19% -12%;height:110px;border:1px solid rgba(103,232,249,.28);border-radius:50%;transform:rotate(-8deg);box-shadow:0 32px 0 -30px rgba(103,232,249,.36),0 64px 0 -59px rgba(255,255,255,.22)}
body.frontend-theme-oceanic_pulse .login-popup-panel{box-shadow:0 46px 130px rgba(3,76,105,.34)}

/* Alpine Frost — precise, architectural, crisp */
body.frontend-theme-alpine_frost .login-popup{--login-accent:#2563eb;--login-accent-2:#60a5fa;--login-showcase:#163354;--login-showcase-2:#315d8c;--login-panel:#fbfdff;--login-field:#f5f9ff;--login-line:#cfe0f3;--login-ink:#17324f;--login-muted:#657991;--login-radius:18px}
body.frontend-theme-alpine_frost .login-popup-panel{border-width:2px;box-shadow:18px 18px 0 rgba(30,58,95,.08),0 42px 100px rgba(30,58,95,.24)}
body.frontend-theme-alpine_frost .login-popup-showcase{background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(145deg,var(--login-showcase),var(--login-showcase-2));background-size:32px 32px,32px 32px,auto}
body.frontend-theme-alpine_frost .login-popup-logo,body.frontend-theme-alpine_frost .login-popup-input,body.frontend-theme-alpine_frost .login-popup .captcha-field{border-radius:6px}
body.frontend-theme-alpine_frost .login-popup-submit{border-radius:6px}

/* Sakura Health — soft blossom garden */
body.frontend-theme-sakura_health .login-popup{--login-accent:#d85687;--login-accent-2:#9f4f8a;--login-showcase:#5a264b;--login-showcase-2:#9c4a72;--login-panel:#fffafb;--login-field:#fff5f8;--login-line:#f0d6df;--login-ink:#4c2942;--login-muted:#80677a;--login-radius:48px}
body.frontend-theme-sakura_health .login-popup-showcase-pattern span:nth-child(1),body.frontend-theme-sakura_health .login-popup-showcase-pattern span:nth-child(2){border-radius:46% 54% 58% 42%;transform:rotate(24deg);border-color:rgba(255,231,239,.18)}
body.frontend-theme-sakura_health .login-popup-showcase-pattern span:nth-child(4){border-radius:60% 40% 65% 35%;background:#ffd0df;box-shadow:30px -34px 0 3px rgba(255,208,223,.18),90px 18px 0 -1px rgba(255,255,255,.55),175px -42px 0 -2px rgba(255,231,239,.65)}
body.frontend-theme-sakura_health .login-popup-input,body.frontend-theme-sakura_health .login-popup-submit,body.frontend-theme-sakura_health .login-popup .captcha-field{border-radius:18px}

/* Royal Indigo — framed premium access */
body.frontend-theme-royal_indigo .login-popup{--login-accent:#6366f1;--login-accent-2:#8b5cf6;--login-showcase:#27246c;--login-showcase-2:#56349c;--login-panel:#fcfbff;--login-field:#f7f5ff;--login-line:#ddd9f3;--login-ink:#302d69;--login-muted:#716d91;--login-radius:28px}
body.frontend-theme-royal_indigo .login-popup-panel:after{content:"";position:absolute;inset:10px;z-index:7;border:1px solid color-mix(in srgb,#c4b5fd 52%,transparent);border-radius:20px;pointer-events:none}
body.frontend-theme-royal_indigo .login-popup-showcase{box-shadow:inset -1px 0 rgba(255,255,255,.11)}
body.frontend-theme-royal_indigo .login-popup-kicker{border-radius:7px}

/* Citrus Vital — energetic bento geometry */
body.frontend-theme-citrus_vital .login-popup{--login-accent:#16a34a;--login-accent-2:#84cc16;--login-showcase:#104d2a;--login-showcase-2:#238443;--login-panel:#fbfff5;--login-field:#f5fde8;--login-line:#d8eabf;--login-ink:#173a24;--login-muted:#607665;--login-radius:42px 16px 42px 16px}
body.frontend-theme-citrus_vital .login-popup-panel{border-radius:42px 16px 42px 16px}
body.frontend-theme-citrus_vital .login-popup-showcase{padding:32px;border-radius:40px 0 34px 0}
body.frontend-theme-citrus_vital .login-popup-showcase-pattern span:nth-child(1){width:150px;height:150px;border-radius:28px;transform:rotate(12deg);right:-42px;top:60px;background:rgba(190,242,100,.08)}
body.frontend-theme-citrus_vital .login-popup-showcase-pattern span:nth-child(2){width:90px;height:90px;border-radius:22px;right:70px;top:18px;background:rgba(255,255,255,.05)}
body.frontend-theme-citrus_vital .login-popup-submit{border-radius:16px 7px 16px 7px}

/* Botanical Serenity — organic sanctuary */
body.frontend-theme-botanical_serenity .login-popup{--login-accent:#6b8f71;--login-accent-2:#9bb46f;--login-showcase:#284638;--login-showcase-2:#587b61;--login-panel:#fbfcf7;--login-field:#f4f7ef;--login-line:#d9e1d3;--login-ink:#294638;--login-muted:#6e7c6f;--login-radius:72px 26px 72px 26px}
body.frontend-theme-botanical_serenity .login-popup-panel{border-radius:72px 26px 72px 26px}
body.frontend-theme-botanical_serenity .login-popup-showcase-pattern span:nth-child(1){width:230px;height:360px;right:-115px;top:-70px;border-radius:100% 0 100% 0;transform:rotate(22deg);background:rgba(223,234,217,.07)}
body.frontend-theme-botanical_serenity .login-popup-showcase-pattern span:nth-child(2){width:130px;height:230px;right:52px;top:18px;border-radius:100% 0 100% 0;transform:rotate(42deg)}
body.frontend-theme-botanical_serenity .login-popup-submit{border-radius:24px 10px 24px 10px}

/* Aether Glass — layered spatial glass */
body.frontend-theme-aether_glass .login-popup{--login-accent:#7c3aed;--login-accent-2:#22d3ee;--login-showcase:#f4f2ff;--login-showcase-2:#e9f9ff;--login-panel:rgba(255,255,255,.94);--login-field:rgba(255,255,255,.86);--login-line:#d9dcf3;--login-ink:#252858;--login-muted:#6b6f91;--login-radius:38px}
body.frontend-theme-aether_glass .login-popup-backdrop{background:radial-gradient(circle at 16% 20%,rgba(124,58,237,.13),transparent 28%),radial-gradient(circle at 82% 76%,rgba(34,211,238,.13),transparent 28%),rgba(125,139,171,.22);backdrop-filter:blur(18px) saturate(135%)}
body.frontend-theme-aether_glass .login-popup-panel{background:rgba(255,255,255,.84);backdrop-filter:blur(22px) saturate(130%);border-color:rgba(255,255,255,.72);box-shadow:0 34px 90px rgba(24,17,71,.16)}
body.frontend-theme-aether_glass .login-popup-showcase{margin:8px;border-radius:28px;background:radial-gradient(circle at 18% 15%,rgba(103,232,249,.25),transparent 32%),radial-gradient(circle at 82% 78%,rgba(124,58,237,.16),transparent 24%),linear-gradient(145deg,#f8f6ff,#ebfbff)}
body.frontend-theme-aether_glass .login-popup-showcase:before{content:"";position:absolute;inset:auto 24px 24px 24px;height:1px;background:linear-gradient(90deg,transparent,rgba(124,58,237,.28),rgba(34,211,238,.24),transparent)}
body.frontend-theme-aether_glass .login-popup-showcase{color:var(--login-ink)}
body.frontend-theme-aether_glass .login-popup-logo{border-color:color-mix(in srgb,var(--login-accent) 16%,transparent);background:rgba(255,255,255,.55)}
body.frontend-theme-aether_glass .login-popup-brand-row small{color:var(--login-muted)}
body.frontend-theme-aether_glass .login-popup-kicker{border-color:color-mix(in srgb,var(--login-accent) 16%,transparent);background:rgba(255,255,255,.48);color:color-mix(in srgb,var(--login-accent) 78%,#172033)}
body.frontend-theme-aether_glass .login-popup-showcase-copy h2{color:var(--login-ink)}
body.frontend-theme-aether_glass .login-popup-showcase-copy p,body.frontend-theme-aether_glass .login-popup-trust-row span{color:var(--login-muted)}
body.frontend-theme-aether_glass .login-popup-trust-row svg{color:color-mix(in srgb,var(--login-accent) 72%,#7a8a9b)}
body.frontend-theme-aether_glass .login-popup-form-pane{background:transparent}

/* Kinetic Spectrum — angled motion ribbons */
body.frontend-theme-kinetic_spectrum .login-popup{--login-accent:#ef3f78;--login-accent-2:#ff9d45;--login-showcase:#282149;--login-showcase-2:#4d2860;--login-panel:#fff9fd;--login-field:#fff3f8;--login-line:#efd5e1;--login-ink:#392642;--login-muted:#806b82;--login-radius:12px}
body.frontend-theme-kinetic_spectrum .login-popup-panel{transform:rotate(-.35deg);box-shadow:20px 22px 0 rgba(239,63,120,.1),0 45px 110px rgba(41,29,64,.3)}
body.frontend-theme-kinetic_spectrum .login-popup-showcase{clip-path:polygon(0 0,94% 0,100% 100%,0 100%);padding-right:48px}
body.frontend-theme-kinetic_spectrum .login-popup-showcase:before{content:"";position:absolute;left:-30%;right:-20%;top:32%;height:34px;background:linear-gradient(90deg,#ef3f78,#ffb347);transform:rotate(-9deg);opacity:.78}
body.frontend-theme-kinetic_spectrum .login-popup-kicker,body.frontend-theme-kinetic_spectrum .login-popup-submit,body.frontend-theme-kinetic_spectrum .login-popup-input{border-radius:4px}

/* Sunrise Gold — radiant horizon */
body.frontend-theme-sunrise_gold .login-popup{--login-accent:#e6ae00;--login-accent-2:#ffd83d;--login-showcase:#5b4500;--login-showcase-2:#aa7c00;--login-panel:#fffdf2;--login-field:#fff9d9;--login-line:#eadca3;--login-ink:#4b3b0b;--login-muted:#7d704d;--login-radius:34px}
body.frontend-theme-sunrise_gold .login-popup-showcase{color:#fff;background:radial-gradient(circle at 18% 20%,rgba(255,238,142,.32),transparent 25%),linear-gradient(145deg,#5f4600,#bd8b00)}
body.frontend-theme-sunrise_gold .login-popup-showcase-pattern span:nth-child(1){width:340px;height:340px;right:-170px;top:-170px;border-color:rgba(255,243,164,.32);box-shadow:0 0 0 32px rgba(255,226,79,.05),0 0 0 64px rgba(255,226,79,.035)}
body.frontend-theme-sunrise_gold .login-popup-submit{color:#3d3007;background:linear-gradient(135deg,#fed501,#ffe66a)}

/* Crimson Pulse — decisive clinical command */
body.frontend-theme-crimson_pulse .login-popup{--login-accent:#e8002a;--login-accent-2:#ff4b68;--login-showcase:#54101f;--login-showcase-2:#9f1731;--login-panel:#fff9fa;--login-field:#fff2f4;--login-line:#f0d2d8;--login-ink:#481823;--login-muted:#80656b;--login-radius:24px}
body.frontend-theme-crimson_pulse .login-popup-showcase:before{content:"";position:absolute;left:30px;right:30px;top:51%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25) 12%,rgba(255,255,255,.25) 28%,#ff7188 29%,#ff7188 32%,rgba(255,255,255,.25) 33%,rgba(255,255,255,.25) 48%,#ff7188 49%,#ff7188 51%,rgba(255,255,255,.25) 52%,transparent);opacity:.65}
body.frontend-theme-crimson_pulse .login-popup-showcase-pattern span:nth-child(1),body.frontend-theme-crimson_pulse .login-popup-showcase-pattern span:nth-child(2){border-color:rgba(255,75,104,.28)}
body.frontend-theme-crimson_pulse .login-popup-submit{border-radius:8px}

body.guest-shell .login-popup-new-account{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--login-line) 82%,transparent);font-size:.74rem;color:var(--login-muted)}
body.guest-shell .login-popup-new-account a{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:var(--login-accent)}
body.guest-shell .login-popup-new-account svg,body.guest-shell .login-popup-security-note svg{width:15px;height:15px}
body.guest-shell .login-popup-security-note{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;color:var(--login-muted);font-size:.66rem;line-height:1.45}

/* Direct /login route keeps the popup model but gives it a polished themed stage when closed. */
body.route-login .public-main{min-height:calc(100vh - 76px);display:grid}
body.route-login .public-footer{display:none}
body.guest-shell .login-route-stage{position:relative;display:grid;align-items:center;min-height:calc(100vh - 76px);padding:70px 0;overflow:hidden;background:radial-gradient(circle at 82% 22%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 30%),radial-gradient(circle at 10% 80%,color-mix(in srgb,var(--primary) 8%,transparent),transparent 28%)}
body.guest-shell .login-route-stage-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:70px;align-items:center}
body.guest-shell .login-route-stage-copy{max-width:680px}
body.guest-shell .login-route-stage-copy h1{margin:16px 0 18px;font-size:clamp(2.8rem,5.5vw,5rem);line-height:1;letter-spacing:-.06em;color:var(--navy)}
body.guest-shell .login-route-stage-copy p{max-width:650px;margin:0 0 28px;color:var(--muted);font-size:1.02rem;line-height:1.75}
body.guest-shell .login-route-stage-status{position:relative;min-height:390px;display:grid;place-items:center}
body.guest-shell .login-route-status-orbit{position:absolute;width:310px;height:310px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));border-radius:50%;box-shadow:0 0 0 45px color-mix(in srgb,var(--primary) 4%,transparent),0 0 0 90px color-mix(in srgb,var(--primary) 2%,transparent)}
body.guest-shell .login-route-status-core{width:110px;height:110px;display:grid;place-items:center;border-radius:34px;background:linear-gradient(135deg,var(--primary),var(--blue));color:#fff;box-shadow:0 26px 70px color-mix(in srgb,var(--primary) 28%,transparent);transform:rotate(-4deg)}
body.guest-shell .login-route-status-core svg{width:44px;height:44px}
body.guest-shell .login-route-status-chip{position:absolute;padding:9px 12px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--surface) 88%,transparent);box-shadow:var(--shadow-sm);backdrop-filter:blur(12px);font-size:.68rem;font-weight:780;color:var(--text)}
body.guest-shell .login-route-status-chip.chip-one{left:8%;top:21%}.login-route-status-chip.chip-two{right:2%;bottom:21%}

/* Complete dark-mode treatment: both panes, themed showcase surfaces and form controls. */
html[data-theme="dark"] body.guest-shell .login-popup{--login-panel:#0b1525;--login-field:#101d30;--login-line:#2a3a51;--login-ink:#eef4ff;--login-muted:#a7b3c6}
html[data-theme="dark"] body.guest-shell .login-popup-backdrop{background:rgba(3,8,18,.78);backdrop-filter:blur(18px) saturate(120%)}
html[data-theme="dark"] body.guest-shell .login-popup-panel{border-color:color-mix(in srgb,var(--login-accent) 18%,#26354a);background:#0b1525;box-shadow:0 34px 100px rgba(0,0,0,.48)}
html[data-theme="dark"] body.guest-shell .login-popup-form-pane{background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--login-accent) 13%,transparent),transparent 34%),var(--login-panel)}
html[data-theme="dark"] body.guest-shell .login-popup-showcase{color:var(--login-ink)}
html[data-theme="dark"] body.guest-shell .login-popup-logo{border-color:color-mix(in srgb,var(--login-accent) 24%,rgba(255,255,255,.08));background:rgba(255,255,255,.065);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
html[data-theme="dark"] body.guest-shell .login-popup-kicker{border-color:color-mix(in srgb,var(--login-accent) 30%,rgba(255,255,255,.08));background:color-mix(in srgb,var(--login-accent) 10%,rgba(7,15,28,.72));color:color-mix(in srgb,var(--login-accent) 48%,#fff)}
html[data-theme="dark"] body.guest-shell .login-popup-showcase-pattern span{border-color:color-mix(in srgb,var(--login-accent) 22%,rgba(255,255,255,.07))}
html[data-theme="dark"] body.guest-shell .login-popup-close{border-color:#2a3a51;background:rgba(10,22,38,.82);color:#eef4ff;box-shadow:0 8px 24px rgba(0,0,0,.24)}
html[data-theme="dark"] body.guest-shell .login-popup-input{background:var(--login-field);border-color:var(--login-line);color:var(--login-ink)}
html[data-theme="dark"] body.guest-shell .login-popup-input::placeholder{color:#7f8ea4}
html[data-theme="dark"] body.guest-shell .login-popup-input:focus{background:#132238;color:var(--login-ink)}
html[data-theme="dark"] body.guest-shell .login-popup .captcha-field{border-color:var(--login-line);background:#101c2e}
html[data-theme="dark"] body.guest-shell .login-popup .captcha-image-frame{background:#eef4f8;border-color:#3b4a60}
html[data-theme="dark"] body.guest-shell .login-popup .captcha-refresh,html[data-theme="dark"] body.guest-shell .login-popup .captcha-input{background:#0d1a2d;border-color:#34455d;color:var(--login-ink)}
html[data-theme="dark"] body.guest-shell .login-popup .captcha-input::placeholder{color:#a8a8c2}
html[data-theme="dark"] body.guest-shell .login-popup-eyebrow{background:color-mix(in srgb,var(--login-accent) 17%,#101a2b);color:#f3f6ff}
html[data-theme="dark"] body.guest-shell .login-popup-new-account{border-top-color:#24364d}
html[data-theme="dark"] body.guest-shell .login-popup-notice{border-color:#314259;background:#101d30;color:#dce7f5}
html[data-theme="dark"] body.guest-shell .login-popup-notice.is-success{border-color:#245b43;background:#0d2b20;color:#8ee7b8}
html[data-theme="dark"] body.guest-shell .login-popup-notice.is-info{border-color:#274f83;background:#0d2341;color:#9ac5ff}
html[data-theme="dark"] body.guest-shell .login-popup-notice.is-warning{border-color:#6b5424;background:#2c230e;color:#f6d57e}
html[data-theme="dark"] body.guest-shell .login-popup-notice.is-danger{border-color:#6a3038;background:#30161c;color:#ffabb5}

/* Theme-specific dark showcase palettes. */
html[data-theme="dark"] body.frontend-theme-oceanic_pulse .login-popup{--login-showcase:#041c2d;--login-showcase-2:#075364}
html[data-theme="dark"] body.frontend-theme-alpine_frost .login-popup{--login-showcase:#101f33;--login-showcase-2:#203d5c}
html[data-theme="dark"] body.frontend-theme-sakura_health .login-popup{--login-showcase:#301827;--login-showcase-2:#5d2845}
html[data-theme="dark"] body.frontend-theme-royal_indigo .login-popup{--login-showcase:#17163d;--login-showcase-2:#31205d}
html[data-theme="dark"] body.frontend-theme-citrus_vital .login-popup{--login-showcase:#0d2b1a;--login-showcase-2:#174b2b}
html[data-theme="dark"] body.frontend-theme-botanical_serenity .login-popup{--login-showcase:#172a20;--login-showcase-2:#304a38}
html[data-theme="dark"] body.frontend-theme-kinetic_spectrum .login-popup{--login-showcase:#20182f;--login-showcase-2:#3b203e}
html[data-theme="dark"] body.frontend-theme-sunrise_gold .login-popup{--login-showcase:#2b250c;--login-showcase-2:#5c4510}
html[data-theme="dark"] body.frontend-theme-sunrise_gold .login-popup-showcase{background:radial-gradient(circle at 18% 20%,rgba(255,216,61,.12),transparent 25%),linear-gradient(145deg,#2b250c,#5c4510)}
html[data-theme="dark"] body.frontend-theme-crimson_pulse .login-popup{--login-showcase:#2f1017;--login-showcase-2:#641427}

/* Aether Glass needs its own dark glass artwork because the light variant uses hard-coded pale gradients. */
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup{--login-panel:rgba(8,17,32,.96);--login-field:#101e32;--login-line:#2a3a55;--login-ink:#eef2ff;--login-muted:#a8b4cf}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-backdrop{background:radial-gradient(circle at 16% 20%,rgba(124,58,237,.20),transparent 30%),radial-gradient(circle at 82% 76%,rgba(34,211,238,.13),transparent 30%),rgba(2,7,18,.82);backdrop-filter:blur(20px) saturate(135%)}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-panel{background:linear-gradient(135deg,rgba(11,20,38,.94),rgba(7,15,29,.94));border-color:rgba(144,129,255,.20);box-shadow:0 38px 110px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.025) inset}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-showcase{background:radial-gradient(circle at 18% 15%,rgba(34,211,238,.13),transparent 32%),radial-gradient(circle at 82% 78%,rgba(124,58,237,.22),transparent 28%),linear-gradient(145deg,#101a35,#171b3d 52%,#151633);border:1px solid rgba(151,133,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.045)}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-logo{border-color:rgba(151,133,255,.18);background:rgba(255,255,255,.06)}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-kicker{border-color:rgba(151,133,255,.22);background:rgba(124,58,237,.11);color:#c9bcff}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-showcase:before{background:linear-gradient(90deg,transparent,rgba(124,58,237,.42),rgba(34,211,238,.28),transparent)}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-showcase:after{background:rgba(124,58,237,.24);opacity:.72}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-showcase-copy h2{color:#f2f4ff}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-showcase-copy p,html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-trust-row span,html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-brand-row small{color:#aab6d2}
html[data-theme="dark"] body.frontend-theme-aether_glass .login-popup-form-pane{background:radial-gradient(circle at 100% 0,rgba(124,58,237,.13),transparent 34%),transparent}

@media(max-width:960px){
  body.guest-shell .login-popup{padding:16px}
  body.guest-shell .login-popup-panel{grid-template-columns:minmax(220px,.68fr) minmax(380px,1.32fr);width:min(960px,calc(100vw - 24px))}
  body.guest-shell .login-popup-showcase{padding:24px}
  body.guest-shell .login-popup-showcase-copy{margin:26px 0 18px}
  body.guest-shell .login-popup-showcase-copy h2{font-size:2rem}
  body.guest-shell .login-popup-form-pane{padding:28px 28px 18px}
}
@media(max-height:860px){
  body.guest-shell .login-popup{align-items:flex-start}
  body.guest-shell .login-popup-panel{max-height:calc(100dvh - 18px)}
  body.guest-shell .login-popup-showcase{padding:22px 24px}
  body.guest-shell .login-popup-showcase-copy{margin:18px 0 10px}
  body.guest-shell .login-popup-showcase-copy h2{font-size:1.86rem}
  body.guest-shell .login-popup-showcase-copy p{font-size:.8rem;line-height:1.48}
  body.guest-shell .login-popup-trust-row{gap:6px}
  body.guest-shell .login-popup-form-pane{padding:24px 24px 16px}
  body.guest-shell .login-popup-form-head h1{font-size:1.72rem}
  body.guest-shell .login-popup-form-head p{margin-bottom:12px}
  body.guest-shell .login-popup-form{gap:10px}
  body.guest-shell .login-popup .captcha-field{padding:9px 10px 10px}
  body.guest-shell .login-popup .captcha-image-frame{width:240px}
  body.guest-shell .login-popup .captcha-image-frame img{height:100%}
  body.guest-shell .login-popup .captcha-refresh{min-height:44px}
  body.guest-shell .login-popup-submit{min-height:46px}
}
@media(max-height:760px) and (min-width:721px){
  body.guest-shell .login-popup-panel{grid-template-columns:minmax(180px,.52fr) minmax(400px,1.48fr)}
  body.guest-shell .login-popup-brand-row,body.guest-shell .login-popup-showcase-copy p,body.guest-shell .login-popup-trust-row{display:none}
  body.guest-shell .login-popup-showcase-copy{margin:0}
  body.guest-shell .login-popup-showcase{justify-content:center}
}
@media(max-width:820px) and (min-width:721px){
  body.guest-shell .login-popup .captcha-challenge{grid-template-columns:minmax(190px,230px) max-content}
  body.guest-shell .login-popup .captcha-image-frame{width:230px}
}
@media(max-width:720px){
  body.guest-shell .login-popup{padding:0;align-items:end}
  body.guest-shell .login-popup-panel,body.frontend-theme-citrus_vital .login-popup-panel,body.frontend-theme-botanical_serenity .login-popup-panel{display:block;width:100%;max-height:96vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-radius:28px 28px 0 0;transform:none}
  body.guest-shell .login-popup-showcase{min-height:104px;display:block;padding:20px 72px 20px 22px;border-radius:0;clip-path:none}
  body.guest-shell .login-popup-showcase:before{display:none}
  body.guest-shell .login-popup-brand-row,body.guest-shell .login-popup-showcase-copy p,body.guest-shell .login-popup-trust-row{display:none}
  body.guest-shell .login-popup-showcase-copy{margin:0}
  body.guest-shell .login-popup-kicker{font-size:.59rem;padding:5px 8px}
  body.guest-shell .login-popup-showcase-copy h2{max-width:460px;margin:8px 0 0;font-size:1.45rem;line-height:1.08}
  body.guest-shell .login-popup-close{top:18px;right:18px;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff;box-shadow:none}
  body.guest-shell .login-popup-form-pane{padding:24px 22px calc(22px + env(safe-area-inset-bottom));overflow:visible}
  body.guest-shell .login-popup-form-head{padding-right:0}
  body.guest-shell .login-popup-mobile-brand{display:inline-flex;align-items:center;gap:7px;margin-bottom:13px;color:var(--login-ink);font-size:.72rem;font-weight:850}
  body.guest-shell .login-popup-mobile-brand img{width:24px;height:24px}
  body.guest-shell .login-popup-form-head h1{font-size:1.82rem}
  body.guest-shell .login-popup-form-head p{margin-bottom:18px}
  body.guest-shell .login-popup .captcha-image-frame{width:240px}
  body.guest-shell .login-popup .captcha-image-frame img{height:100%}
  body.guest-shell .login-popup .captcha-refresh{min-height:44px}
  body.guest-shell .login-route-stage-inner{grid-template-columns:1fr}
  body.guest-shell .login-route-stage-status{display:none}
}
@media(max-width:460px){
  body.guest-shell .login-popup-form-pane{padding-inline:17px}
  body.guest-shell .login-popup-form-meta{align-items:flex-start;flex-direction:column;gap:9px}
  body.guest-shell .login-popup-new-account{align-items:flex-start;flex-direction:column;gap:7px}
  body.guest-shell .login-popup .captcha-challenge{display:grid;grid-template-columns:1fr;align-items:stretch}
  body.guest-shell .login-popup .captcha-image-frame{width:min(260px,100%);justify-self:start}
  body.guest-shell .login-popup .captcha-refresh{min-height:40px;width:100%}
  body.guest-shell .login-route-stage{padding:45px 0}
  body.guest-shell .login-route-stage-copy h1{font-size:2.65rem}
}
