:root{--login-ink:#15283c;--login-muted:#61758b;--login-line:#c9d9e2;--login-brand:#495bd6}
*{box-sizing:border-box}
body.motion-login{margin:0;min-height:100vh;padding:0;background:radial-gradient(ellipse at 5% 0,#e8f2fc,transparent 45%),#f2f7fc!important;color:var(--login-ink)!important;font-family:var(--font-sf,system-ui,sans-serif);font-size:15px}
body.motion-login::before,body.motion-login::after{display:none!important}
.motion-login .login-layout>.login-card{background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}
.login-benefits{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 0;padding:0;list-style:none;color:#b7cedd;font-size:11px}
.login-benefits li{display:flex;align-items:center;gap:6px}
.login-benefits svg{width:15px;height:15px;flex:none}
.login-header,.login-footer{width:min(1240px,calc(100% - 80px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.login-header{min-height:110px}.login-logo{display:block;width:220px;height:auto}.login-header-label{display:flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid var(--login-line);border-radius:999px;font-size:12px;color:#405d73;background:#ffffffa8}
.login-header svg,.login-security-note svg,.login-submit svg,.register svg{width:18px;height:18px;flex:none}
.login-layout{width:min(1240px,calc(100% - 80px));margin:10px auto 28px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);border:1px solid #dbe5eb;border-radius:28px;background:white;box-shadow:0 24px 75px #17354012;overflow:hidden}
.login-story{position:relative;display:flex;flex-direction:column;min-width:0;padding:44px 42px 30px;background:radial-gradient(ellipse at 45% 50%,#234757 0,transparent 56%),linear-gradient(145deg,#142b43,#081a2c);color:#fff}
.login-eyebrow{margin:0 0 24px;color:#b3d5e7;font-size:10px;letter-spacing:.14em;line-height:1.5}
.login-story h2{margin:0;font-size:clamp(26px,2.6vw,40px);line-height:1.19;letter-spacing:-.035em;font-weight:500}.login-story h2 span{color:#a8e9d5}.login-story-lead{max-width:390px;margin:18px 0 0;color:#b7cedd;font-size:14px;line-height:1.7}
.motion-login .login-story h2{color:#fff!important}
.motion-login .login-card .passkey-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:10px 16px;border:1px solid var(--login-line);border-radius:10px;font:inherit;font-size:13px;cursor:pointer}
.motion-login .passkey-button svg{width:18px;height:18px;flex:none}
.motion-login .login-submit{background:#495bd6!important;color:#fff!important;box-shadow:none!important}
.motion-login .login-submit:hover{background:#3b4abb!important;box-shadow:0 6px 16px #495bd625!important}
.motion-login .login-card .passkey-button{background:#fff!important;color:#294d60!important;box-shadow:none!important}
.login-story .chloe-motion{margin:6px auto 0;width:100%;max-width:500px}.login-story .chloe-motion-toggle{color:#c9dce9;background:#142c44;border-color:#456174;min-height:34px;font-size:11px}.login-story .chloe-motion-toggle:hover{background:#24465c}.login-story-bottom{margin-top:24px}.login-story-rule{display:block;width:32px;height:2px;background:#8bdecc}.login-story-bottom p{margin:12px 0 4px;font-size:13px;letter-spacing:.03em}.login-story-bottom small{color:#99b5c8;font-size:11px}
.login-card{min-width:0;padding:40px 48px 34px;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.portal-site-back{display:inline-flex;align-items:center;min-height:32px;margin-bottom:32px;color:var(--login-muted);font-size:12px;text-decoration:none}.portal-site-back:hover{color:var(--login-brand)}
.login-card-kicker{display:block;margin-bottom:10px;color:#247583;font-size:10px;letter-spacing:.12em}.login-card h1{margin:0;color:var(--login-ink);font-size:32px;line-height:1.2;letter-spacing:-.04em;font-weight:500}.login-intro{margin:10px 0 26px;color:var(--login-muted);font-size:14px;line-height:1.6}
.login-form label{display:block;margin:18px 0 8px;color:#294d60;font-size:13px}.login-form input:not([type=hidden]){width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--login-line);border-radius:10px;background:#fff;color:var(--login-ink);font:inherit;font-size:14px}.login-form input::placeholder{color:#73879b}.login-form input:focus{outline:3px solid #7c9df445;outline-offset:1px;border-color:var(--login-brand)}
.login-password-wrap{position:relative}.login-password-wrap input{padding-right:70px!important}.login-password-wrap button{position:absolute;right:5px;top:4px;width:58px;min-height:40px;border:0;border-radius:7px;background:#f2f7fc;color:#405d73;font:inherit;font-size:12px;cursor:pointer}.login-password-wrap button[hidden]{display:none}
.auth-help{text-align:right;margin:8px 0 18px}.auth-help a{display:inline-flex;align-items:center;min-height:32px;color:var(--login-brand);font-size:12px;text-decoration:none}
.login-submit{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px 20px;border:1px solid var(--login-brand);border-radius:10px;background:var(--login-brand);color:white;font:inherit;font-size:14px;cursor:pointer;transition:background .18s,box-shadow .18s}.login-submit:hover{background:#3b4abb;box-shadow:0 6px 16px #495bd625}.login-submit:active{background:#303ea4}
.login-card .passkey-login-section{margin-top:18px}.login-card .passkey-button{min-height:46px;border-color:var(--login-line);color:#294d60;background:#fff}.login-card .passkey-help{font-size:11px;line-height:1.6;color:var(--login-muted)}
.register{margin-top:24px;padding-top:22px;border-top:1px solid #dbe5eb;text-align:center}.register p{display:inline;margin:0 7px 0 0;color:var(--login-muted);font-size:12px}.register a{display:inline-flex;align-items:center;gap:6px;min-height:32px;color:var(--login-brand);font-size:12px;text-decoration:none}.register small{display:block;margin-top:6px;color:var(--login-muted);font-size:11px;line-height:1.6}.login-security-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:22px 0 0;color:var(--login-muted);font-size:11px}
.login-feedback{margin:0 0 20px;padding:13px 15px;border:1px solid #bcdccf;border-radius:10px;background:#edf8f2;color:#285d47;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.login-feedback--error{border-color:#e7bec5;background:#fff4f5;color:#873445}
.login-footer{margin-bottom:28px;color:var(--login-muted);font-size:11px}.login-skip{position:absolute;left:16px;top:-100px;padding:12px 18px;border-radius:8px;background:white;z-index:10}.login-skip:focus{top:12px}
.motion-login :is(a,button):focus-visible{outline:3px solid #7c9df4;outline-offset:3px}.motion-login :is(a,button):hover{text-decoration:none}.motion-login :is(button,input){font-family:inherit}
@media(max-width:1100px){.login-card{padding:36px 32px}.login-story{padding:40px 32px}.login-story h2{font-size:32px}.login-layout{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.login-header,.login-footer,.login-layout{width:calc(100% - 40px)}.login-header{min-height:90px}.login-logo{width:190px}.login-layout{grid-template-columns:1fr;overflow:visible;border-radius:22px}.login-card{grid-row:1;border-radius:22px 22px 0 0!important;padding:34px 40px}.login-story{grid-row:2;border-radius:0 0 22px 22px;padding:28px 32px}.login-story h2{font-size:27px}.login-story-lead{max-width:100%;font-size:13px}.login-story .chloe-motion{width:300px;max-width:100%;margin:0 auto}.login-story-bottom{margin-top:12px}.portal-site-back{margin-bottom:22px}}
@media(max-width:480px){.login-header,.login-footer,.login-layout{width:calc(100% - 28px)}.login-header{min-height:80px;gap:8px}.login-logo{width:170px}.login-header-label{padding:7px 9px;font-size:10px}.login-header-label svg{width:14px;height:14px}.login-card{padding:26px 24px}.login-card h1{font-size:29px}.login-story{padding:26px 24px}.login-story h2{font-size:25px}.login-footer{align-items:flex-start;flex-direction:column;gap:8px}.auth-help a,.register a,.portal-site-back{min-height:44px}.login-eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){.login-submit{transition:none}}

/* Keep login controls independent of shared tool-button dimensions. */
.motion-login .login-password-wrap button{position:absolute!important;right:5px;top:4px;min-height:40px!important;height:40px!important;padding:0!important;background:#f2f7fc!important;border:0!important;box-shadow:none!important}
.motion-login .login-form input{height:48px!important;min-height:48px!important}
.motion-login .login-submit,.motion-login .passkey-button{height:auto!important;min-height:48px!important;padding:12px 20px!important}
.motion-login .login-story .chloe-motion-toggle{color:#c9dce9!important;background:#142c44!important;border-color:#456174!important;box-shadow:none!important;min-height:36px!important}
.motion-login .login-story .chloe-motion-toggle:hover{background:#24465c!important}
@media(max-width:480px){.motion-login .login-story .chloe-motion-toggle{min-height:44px!important}}
@media(max-width:480px){.motion-login .login-password-wrap button{top:2px;height:44px!important;min-height:44px!important}}


/* Chloé Digital Estate: integrated SVG, with readable labels at small widths. */
.login-story::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.24;background:
  radial-gradient(ellipse at 50% 58%,#438f9d30,transparent 48%),
  radial-gradient(#8bdecc24 .7px,transparent .7px);background-size:auto,24px 24px;
  mask-image:linear-gradient(transparent,#000 25%,#000 80%,transparent)}
.login-story>*{position:relative;z-index:1}
.login-story .chloe-motion[data-chloe-motion="estate"]{max-width:580px;width:100%;margin:28px auto 0;container-type:inline-size;container-name:chloe-estate}
.login-story .chloe-motion[data-chloe-motion="estate"] .chloe-motion-art{overflow:visible}
.login-story .chloe-motion[data-chloe-motion="estate"] .chloe-motion-fallback{opacity:1;transition:none}
.estate-legend{display:none}
/* A short decorative reveal settles without a perpetual animation or WebGL. */
.estate-hub-art{pointer-events:none;animation:estate-hub-arrive 3.2s ease-out both}
.estate-connections{animation:estate-connections-arrive 3.2s ease-out both}
@keyframes estate-hub-arrive{0%{transform:translateY(8px)}45%{transform:translateY(-3px)}100%{transform:translateY(0)}}
@keyframes estate-connections-arrive{0%{opacity:.4}45%{opacity:1}100%{opacity:.8}}
@media(prefers-reduced-motion:reduce){.estate-hub-art,.estate-connections{animation:none}}
.login-story-bottom{margin-top:26px;padding-top:2px}
.login-story-rule{box-shadow:0 0 16px #8bdecc20}
/* Scope the scenic polish to this sign-in view, including injected late-loading CSS. */
body.motion-login .chloe-scenic-image{filter:saturate(.65) brightness(1.08) blur(3px);transform:scale(1.015)}
body.motion-login .chloe-scenic::after{opacity:.83;background:linear-gradient(145deg,#ecf4fa,#dbe8f3 58%,#f4f7fb)}
@media(min-width:821px) and (max-width:1100px){
  .login-story{padding-inline:24px}
}
@media(max-width:820px){
  .login-story .chloe-motion[data-chloe-motion="estate"]{width:100%;max-width:580px;margin:24px auto 0}
}
@container chloe-estate (max-width:500px){
  .estate-art .estate-labels{display:none}
  .estate-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:12px 0 0;padding:0;list-style:none}
  .estate-legend li{min-width:0;padding-left:9px;border-left:1px solid #5ea4b65e}
  .estate-legend strong,.estate-legend span{display:block;line-height:1.5}
  .estate-legend strong{color:#e0eef3;font-size:12px;font-weight:500}
  .estate-legend span{color:#a6c1ce;font-size:11px}
  .login-story .chloe-motion[data-chloe-motion="estate"] .chloe-motion-art{aspect-ratio:600/402}
  .login-story .estate-art{height:auto}
}

/* Let desktop content fit the window, while short or zoomed views can reflow. */
@media(min-width:1100px){
  body.motion-login{display:flex;flex-direction:column;gap:8px;min-height:100dvh;padding:6px 0!important}
  .motion-login .login-header{min-height:50px;flex:none}
  .motion-login .login-logo{width:180px}
  .motion-login .login-header-label{padding:7px 12px;font-size:11px}
  .motion-login .login-layout{flex:1 0 auto;min-height:0!important;margin:0 auto;border-radius:22px}
  .motion-login .login-story{padding:22px 28px 18px}
  .motion-login .login-eyebrow{margin-bottom:10px}
  .motion-login .login-story h2{font-size:30px;line-height:1.2}
  .motion-login .login-story-lead{max-width:100%;margin-top:10px;font-size:13px;line-height:1.5}
  .motion-login .login-story .chloe-motion[data-chloe-motion="estate"]{display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:center;gap:12px;max-width:none;margin:12px 0;flex:1}
  .motion-login .login-story .chloe-motion-art{aspect-ratio:auto;height:clamp(250px,40vh,360px)}
  .motion-login .login-story .estate-art{height:100%}
  .motion-login .estate-labels{display:none}
  .motion-login .estate-legend{display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:0;list-style:none}
  .motion-login .estate-legend li{padding-left:9px;border-left:1px solid #5ea4b65e}
  .motion-login .estate-legend strong,.motion-login .estate-legend span{display:block;line-height:1.4}
  .motion-login .estate-legend strong{color:#e0eef3;font-size:12px;font-weight:500}
  .motion-login .estate-legend span{color:#a6c1ce;font-size:11px}
  .motion-login .login-story-bottom{margin-top:0}
  .motion-login .login-story-bottom p{margin:8px 0 4px}
  .motion-login .login-benefits{margin-top:8px;gap:8px 12px}
  .motion-login .login-card{padding:16px 32px}
  .motion-login .portal-site-back{min-height:24px;margin-bottom:4px}
  .motion-login .login-card-kicker{margin-bottom:4px}
  .motion-login .login-card h1{font-size:28px}
  .motion-login .login-intro{margin:4px 0 8px;font-size:13px;line-height:1.5}
  .motion-login .login-form label{margin:8px 0 4px;font-size:12px}
  .motion-login .login-form input{height:44px!important;min-height:44px!important;padding:10px 14px}
  .motion-login .login-password-wrap button{top:2px}
  .motion-login .auth-help{margin:4px 0 6px}
  .motion-login .auth-help a{min-height:24px}
  .motion-login .login-submit,.motion-login .passkey-button{min-height:44px!important;padding:10px 20px!important}
  .motion-login .login-card .passkey-login-section{margin-top:10px;padding-top:8px}
  .motion-login .passkey-divider{margin-bottom:6px}
  .motion-login .login-card .passkey-help{margin-top:6px;line-height:1.3}
  .motion-login .register{margin-top:10px;padding-top:10px}
  .motion-login .register a{min-height:28px}
  .motion-login .register small{margin-top:4px;line-height:1.4}
  .motion-login .login-security-note{margin-top:8px}
  .motion-login .login-feedback{margin-bottom:10px;padding:10px 12px}
  body.motion-login .chloe-site-footer{display:grid;grid-template-columns:1fr auto;gap:2px 16px;width:min(1240px,calc(100% - 80px));margin:0 auto;padding:8px 0;flex:none;text-align:left;font-size:11px;line-height:1.35}
  body.motion-login .chloe-footer-brand{justify-content:flex-start;gap:8px;margin:0}
  body.motion-login .chloe-footer-brand strong{font-size:12px}
  body.motion-login .chloe-footer-brand span{font-size:11px}
  body.motion-login .chloe-site-footer p{max-width:none;margin:0}
  body.motion-login .chloe-site-footer p:first-of-type{grid-column:2;grid-row:1;text-align:right}
  body.motion-login .chloe-footer-version{grid-column:2;grid-row:2;text-align:right}
  body.motion-login .chloe-footer-legal{grid-column:1/-1;margin-top:2px!important;font-size:10.5px}
  body.motion-login .chloe-footer-bottom{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:0}
  body.motion-login .chloe-footer-links{margin-top:0;justify-content:flex-start}
}
