/* Login, consenso OAuth e sicurezza: stesso sistema visivo della PWA (token, tema scuro di default). */
:root{--bg:#0b0f14;--surface:#141a21;--surface-2:#1b232c;--border:#26303b;--text:#e8edf2;--muted:#9aa7b4;
--accent:#4a9eff;--accent-ink:#04121f;--positive:#2ecc71;--negative:#ff5a5f;--radius:16px;color-scheme:dark;
font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,system-ui,sans-serif}
@media (prefers-color-scheme:light){:root{--bg:#f5f7fa;--surface:#fff;--surface-2:#f0f3f7;--border:#e5e7eb;
--text:#222;--muted:#6b7280;--accent:#0b4f8a;--accent-ink:#fff;--positive:#12864b;--negative:#c22b2b;color-scheme:light}}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);
background-image:radial-gradient(1200px 500px at 50% -10%,color-mix(in srgb,var(--accent) 16%,transparent),transparent)}
main{max-width:460px;margin:0 auto;padding:max(8vh,32px) 20px 48px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.02em;font-size:1rem;color:var(--text)}
.brand::before{content:"";width:34px;height:34px;border-radius:10px;
background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v14M12 4l6 11h-6M11 6l-5 9h5M4 19h16l-2 2H6z'/%3E%3C/svg%3E") center/22px no-repeat}
h1{font-size:2rem;line-height:1.15;margin:28px 0 12px;letter-spacing:-.01em}
h2{font-size:1.1rem;margin:0 0 8px}
p,li{line-height:1.55;color:var(--muted)}
strong{color:var(--text)}
section,details{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin:20px 0}
summary{cursor:pointer;font-weight:600;color:var(--text)}
label{display:block;margin:14px 0 6px;font-size:.85rem;color:var(--muted);font-weight:600;letter-spacing:.02em}
input:not([type=checkbox]),select{display:block;width:100%;font:inherit;color:var(--text);background:var(--surface-2);
padding:13px 14px;border:1px solid var(--border);border-radius:12px;margin-top:6px}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
button{font:inherit;font-weight:650;cursor:pointer;color:var(--accent-ink);background:var(--accent);border:0;border-radius:12px;
padding:14px 20px;margin:10px 8px 6px 0;min-height:48px;min-width:48px}
main > button:first-of-type,#login{width:100%;font-size:1.05rem}
button.secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}
button:disabled{opacity:.55;cursor:wait}
a{color:var(--accent)}
pre,output{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);border:1px solid var(--border);
padding:12px;border-radius:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem;color:var(--text)}
output:empty{display:none}
.entry{padding:12px 0;border-bottom:1px solid var(--border)}
.entry:last-child{border-bottom:0}
.meta{font-size:.85rem;color:var(--muted)}
#status{font-weight:600;color:var(--text)}
fieldset{border:1px solid var(--border);border-radius:12px;padding:12px 16px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
