/* Presentation only: account, recovery and TOTP behavior stays in identity-ui.html. */
body{min-height:100dvh;background:radial-gradient(ellipse at 10% 12%,#e9eedf 0,transparent 58%),#f8f8f2}
main.identity-shell{width:min(1220px,calc(100% - 48px));max-width:1220px;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);padding:0;margin:clamp(20px,5vh,60px) auto;border:1px solid #dfe5d6;border-radius:28px;overflow:hidden;background:#fffefa;box-shadow:0 16px 56px #344c3510}
.welcome-art{min-width:0;padding:34px 32px 26px;background:#eef1e6;display:flex;flex-direction:column;align-items:center;text-align:center}
.welcome-brand{align-self:flex-start;display:inline-flex;align-items:center;gap:12px;color:#355f50;text-decoration:none}
.welcome-brand svg{width:42px;height:42px;padding:9px;border-radius:13px;background:#356455;color:#fff;flex:none}
.welcome-brand strong{font:500 clamp(26px,3vw,34px)/1.15 Georgia,'Times New Roman',serif;letter-spacing:-.025em}
.welcome-quote{max-width:470px;margin:38px 0 18px;font:400 clamp(24px,2.4vw,31px)/1.35 Georgia,'Times New Roman',serif;color:#5a705d;letter-spacing:-.015em;text-wrap:balance}
.welcome-slides{position:relative;width:100%;aspect-ratio:16/10;isolation:isolate}
.welcome-slide{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;opacity:0;transition:opacity 900ms ease;pointer-events:none}
.welcome-slide.is-current{opacity:1}
.welcome-art-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;width:100%;margin-top:16px}
.welcome-art-footer>small{font-size:12px;color:#66755f}
.welcome-slide-controls{display:flex;gap:8px;align-items:center}
.welcome-slide-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:32px;margin:0;padding:4px;border:1px solid transparent;border-radius:9px;background:transparent;color:#45644e;font-size:12px}
.welcome-slide-dot::before{content:'';width:7px;height:7px;background:#a2b198;border-radius:50%}
.welcome-slide-dot[aria-pressed=true]::before{background:#356455;box-shadow:0 0 0 3px #dce5d2}
.welcome-slide-controls button:hover{background:#e2e8d9}
.welcome-slide-controls button:focus-visible,.welcome-brand:focus-visible{outline:2px solid #356455;outline-offset:3px}
.welcome-slide-toggle{gap:5px;padding-inline:8px!important}
.identity-content{padding:48px 40px;min-width:0;align-self:center}
.identity-content h1{font-size:clamp(27px,2.8vw,35px);font-weight:650;letter-spacing:-.035em;line-height:1.2;color:#2f5145;margin:0 0 12px;text-wrap:balance}
.identity-content>p{color:#667365;line-height:1.65;margin:0 0 26px}
.identity-content #message:not(:empty){margin:0 0 20px}
.identity-content #login label{color:#425a4d;font-size:14px}
.identity-content #login input{background:#fffefa;border-color:#ccd8c4}
#login button,#challenge button{width:100%;margin-right:0;min-height:48px}
#login button{background:#356455;border-radius:11px;font-weight:600;box-shadow:0 3px 8px #35645514}
#login button:hover{background:#2d5849}
#message:empty{display:none}
.remember-choice{display:flex;gap:10px;align-items:start;font-size:14px;line-height:1.5}
.remember-choice input{width:auto;margin:4px 0}
.identity-link{display:block;color:#56735f!important;background:transparent!important;padding:4px 0!important;margin:12px 0!important;text-decoration:underline;text-underline-offset:3px;font-size:14px}
#registration{margin-top:26px;border-color:#e0e6d9;background:#f8faf4;font-size:14px}
.identity-shell.has-account{display:block;max-width:860px}
.identity-shell.has-account .welcome-art{display:none}
.identity-shell.has-account .identity-content{padding:38px}
.recovery-dialog{width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:26px;border:1px solid #dce5d2;border-radius:22px;color:#263c35;overflow:auto;box-shadow:0 20px 70px #162d3540}
.recovery-dialog::backdrop{background:#203c3555;backdrop-filter:blur(3px)}
.recovery-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.recovery-dialog header h2{margin:0}
.recovery-dialog header button{margin:0;padding:8px 12px}
.recovery-dialog small{line-height:1.6}
.recovery-dialog .feedback{overflow-wrap:anywhere}
@media(max-width:980px) and (min-width:761px){.welcome-art{padding:28px 22px}.identity-content{padding:36px 28px}.welcome-quote{margin-top:32px}.welcome-art-footer{justify-content:center}.welcome-art-footer>small{width:100%}}
@media(max-width:760px){
 main.identity-shell{width:calc(100% - 24px);grid-template-columns:minmax(0,1fr);margin:12px auto;border-radius:22px}
 .welcome-art{padding:20px 20px 14px}
 .welcome-brand{gap:9px}.welcome-brand svg{width:34px;height:34px;padding:7px;border-radius:11px}.welcome-brand strong{font-size:25px}
 .welcome-quote{font-size:22px;margin:18px 0 8px;max-width:340px}
 .welcome-slides{aspect-ratio:auto;height:clamp(120px,35vw,220px);max-width:500px}
 .welcome-art-footer{margin-top:8px;justify-content:center;gap:4px 12px}.welcome-art-footer>small{font-size:11px}
 .identity-content,.identity-shell.has-account .identity-content{padding:28px 24px}
 .identity-content h1{font-size:28px}.identity-content>p{margin-bottom:20px;font-size:14px}
 .recovery-dialog{padding:20px}
}
@media(prefers-reduced-motion:reduce){.welcome-slide{transition:none}}
