@font-face{font-family:Lato;src:url('/auth/assets/Lato-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--bg:#f5efe3;--paper:#fffaf0;--ink:#302b26;--muted:#73685d;--green:#46695a;--line:#dfd4c4;--danger:#a84832;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}
html{scrollbar-color:var(--line) var(--paper);scrollbar-width:thin}
body{margin:0;min-height:100dvh;display:grid;place-items:center;background:var(--bg);color:var(--ink);font-family:Lato,Arial,sans-serif;font-size:16px;line-height:1.5}
.access{width:min(100% - 48px,420px);padding:64px 0 56px;animation:arrive .35s cubic-bezier(.16,1,.3,1) both}
h1{margin:0;font-size:38px;font-weight:400;line-height:1.16;letter-spacing:-.03em;text-wrap:balance}
h1:focus{outline:none}
.intro{margin:16px 0 30px;color:var(--muted);line-height:1.65;max-width:43ch}
form,section{min-width:0}label{display:block;font-size:14px;margin-bottom:8px}
input,select,button{font:inherit;color:inherit}input,select{width:100%;min-height:50px;padding:12px 14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;caret-color:var(--green)}
input::placeholder{color:var(--muted);opacity:1}input+label{margin-top:22px}
.remember{display:flex;align-items:center;gap:12px;min-height:44px;margin:18px 0 0;cursor:pointer}.remember input{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:0 0 20px;accent-color:var(--green)}.remember span{line-height:1.5}
button{cursor:pointer;touch-action:manipulation}button:disabled,input:disabled,select:disabled{cursor:default;opacity:.55}
.primary{display:block;width:100%;min-height:50px;margin-top:26px;padding:12px 20px;border:0;border-radius:12px;background:var(--green);color:var(--paper)}
.hint{font-size:13px;color:var(--muted);line-height:1.65;margin:12px 0 0}
.loading{font-size:14px;color:var(--muted);margin:0}
.notice{margin:0 0 24px;padding:14px 16px;background:var(--paper);border:1px solid var(--danger);border-radius:12px;color:var(--danger);font-size:14px;overflow-wrap:anywhere}
.text-button{min-height:44px;padding:10px 0;border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-size:14px}
.back{display:block;margin-top:16px}
.qr-wrap{width:fit-content;max-width:100%;margin:0 auto 18px;padding:12px;background:#fff;border-radius:12px}
.qr-wrap img{display:block;width:200px;height:200px;max-width:100%;image-rendering:pixelated}
details{margin:0 0 24px}summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;color:var(--green);text-underline-offset:4px}
code{display:block;margin-top:12px;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;font-size:15px;line-height:1.6;overflow-wrap:anywhere;user-select:all}
.code{font-variant-numeric:tabular-nums;letter-spacing:.18em;font-size:22px}
#factor-choice{margin-bottom:20px}.preview{font-size:12px;color:var(--muted);margin:0 0 28px;padding-bottom:16px;border-bottom:1px solid var(--line)}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.notice:focus{outline:3px solid var(--green);outline-offset:4px}
::selection{background:#edd7bf;color:var(--ink)}
@media(hover:hover){.primary:hover:not(:disabled){background:#365444}.text-button:hover,summary:hover{color:var(--ink)}}
@keyframes arrive{from{transform:translateY(5px);filter:blur(1px)}to{transform:translateY(0);filter:blur(0)}}
@media(max-width:520px){.access{width:calc(100% - 40px);padding:40px 0}h1{font-size:32px}.intro{margin-bottom:26px}.qr-wrap img{width:180px;height:180px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
