:root{color-scheme:dark;font:18px/1.56 system-ui,sans-serif;color:#fdf0d8;background:#151826}
*,*::before,*::after{box-sizing:border-box}
body{background:radial-gradient(ellipse at 79% 2%,#6b504e55,transparent 36rem),radial-gradient(ellipse at 20% 98%,#384b5366,transparent 32rem),#151826;min-height:100vh;min-height:100svh;padding:clamp(18px,5vw,54px);margin:0}
main{max-width:31rem;margin:clamp(0px,7svh,55px) auto;padding:clamp(20px,6vw,46px);border:1px solid #9b786b;border-radius:1.3rem;background:#222232;box-shadow:0 1.25rem 3rem #070b1488}
h1{font:700 clamp(2.55rem,8vw,3.9rem)/.99 Georgia,serif;margin:.45rem 0 1.05rem}
p{margin:0 0 1.35rem}
.back{display:inline-flex;min-height:44px;align-items:center;color:#f2d7a9;text-underline-offset:.28rem}
.eyebrow{margin-top:.8rem;margin-bottom:0;text-transform:uppercase;color:#f3c886;letter-spacing:.14em;font-size:.78rem;font-weight:700}
label{display:block;font-size:1rem;font-weight:750;margin-bottom:.25rem}
input{min-height:50px;width:100%;font:inherit;font-size:max(16px,1rem);scroll-margin-block:64px;color:inherit;background:#161827;border:1px solid #d4ab8b;border-radius:.53rem;padding:.6rem .75rem}
#name-help,.device-note{color:#e4d3c3;font-size:.9rem}
#name-help{margin:.35rem 0 1rem}
button{min-height:48px;padding:.48rem 1.04rem;border:0;border-radius:.53rem;font:700 1rem system-ui;background:#f8cf94;color:#231c25;cursor:pointer;width:100%}
button:disabled{opacity:.75;cursor:wait}
:focus-visible{outline:3px solid #ffed80;outline-offset:4px}
#feedback{margin:1rem 0;color:#ffe3b6}
#feedback:empty{display:none}
.device-note{margin:1.4rem 0 0;padding-top:1rem;border-top:1px solid #806758}

#password-field{margin-bottom:1rem}
#password-help{color:#e4d3c3;font-size:.9rem;margin:.35rem 0 0}
button.legacy{margin-top:.5rem;background:none;color:#f2d7a9;text-decoration:underline}
.account-mode{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:1rem 0 1.25rem;padding:.35rem;border:1px solid #806758;border-radius:.75rem;background:#161827}
.account-mode button{background:transparent;color:#f2d7a9}
.account-mode button[aria-pressed="true"]{background:#f8cf94;color:#231c25;box-shadow:0 .25rem .8rem #08091266}
