/* Sign-in, register and capture pages. Built on the same tokens as the app (knot.css). */
.authwrap{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px}
.authcard{width:min(420px,100%);padding:30px 28px 26px;border-radius:28px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);animation:tilein .5s cubic-bezier(.2,.8,.2,1) both}
.authcard .logo{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:22px}
.authcard .brand-logo{height:58px}
.authcard .tagline{display:block;margin:0 0 0 4px}
.authcard h1{margin:0 0 4px;font-size:30px;font-weight:720;letter-spacing:-.035em;line-height:1.1}
.authcard .sub{margin:0 0 20px;color:var(--ink3)}
.afld{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:13px;font-weight:600;color:var(--ink2)}
.afld input,.afld textarea{width:100%;height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--bg);font-weight:500;font-size:16px;color:var(--ink);outline:0}
.afld select{width:100%;height:46px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);font-weight:500;font-size:16px;color:var(--ink);outline:0}
.afld select:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.afld textarea{height:auto;min-height:120px;padding:12px 14px;font-family:var(--write);font-size:19px;line-height:1.5;resize:vertical}
.afld input:focus,.afld textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.authcard .btn.primary{width:100%;justify-content:center;height:48px;margin-top:6px;font-size:16px}
.aerr{margin:0 0 14px;padding:10px 14px;border-radius:12px;background:color-mix(in srgb,#D6455D 14%,transparent);color:#B3402F;font-weight:560;font-size:14px}
[data-theme=dark] .aerr{color:#FF8A78}
.aok{margin:0 0 14px;padding:10px 14px;border-radius:12px;background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ink);font-weight:560;font-size:14px}
.alt{margin:18px 0 0;text-align:center;font-size:14px;color:var(--ink3)}
.alt a{color:var(--accent);font-weight:600;text-decoration:none}
.alt a:hover{text-decoration:underline}
body.authpage{background-image:radial-gradient(900px 420px at 10% -8%,color-mix(in srgb,var(--accent) 9%,transparent),transparent),radial-gradient(700px 360px at 95% 0,color-mix(in srgb,#E0A030 8%,transparent),transparent);background-attachment:fixed}
body.authpage::after{display:none}

.pkor{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--ink3);font-size:13px}
.pkor::before,.pkor::after{content:"";flex:1;height:1px;background:var(--line)}
.authcard .btn.pkbtn{width:100%;justify-content:center;height:48px;font-size:15.5px}
.authcard .btn.pkbtn[disabled]{opacity:.6}

.hhint{margin:-6px 0 14px;font-size:13px;color:var(--ink3);word-break:break-all}
.hhint b{color:var(--ink);font-weight:650}
.hhint[data-ok="1"]{color:var(--ok)}
.hhint[data-ok="0"]{color:#B3402F}
[data-theme=dark] .hhint[data-ok="0"]{color:#FF8A78}

/* footer (sign-in, register, shared note, about) */
body.hasfoot .authwrap{min-height:calc(100vh - 70px);min-height:calc(100dvh - 70px)}
.aboutcard{width:min(640px,100%);padding:34px 32px 30px;border-radius:28px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.aboutcard .logo{margin-bottom:18px}
.aboutcard .brand-logo{height:54px}
.aboutcard h1{margin:0 0 6px;font-size:32px;font-weight:720;letter-spacing:-.035em;line-height:1.1}
.aboutcard .lede{margin:0 0 22px;color:var(--ink3);font-size:17px}
.aboutcard h2{margin:26px 0 6px;font-size:18px;font-weight:700;letter-spacing:-.015em}
.aboutcard p{margin:0 0 12px;line-height:1.6;color:var(--ink2);font-size:16px}
.aboutcard .say{display:flex;align-items:center;gap:14px;margin:14px 0 4px;padding:14px 18px;border-radius:16px;background:var(--accent-soft)}
.aboutcard .say b{font-size:26px;letter-spacing:-.02em;color:var(--ink)}
.aboutcard .say span{color:var(--ink2);font-size:15px;line-height:1.4}
.aboutcard .back{display:inline-block;margin-top:14px;color:var(--accent);font-weight:600;text-decoration:none}
.aboutcard .back:hover{text-decoration:underline}
