/* Core pages: sign-in, my account */
body.login{display:block;background:var(--rail)}
.login-box{max-width:360px;margin:12vh auto 0;padding:0 16px}
.login-brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:20px;font-weight:600;margin:0 0 16px}
.login-brand img{width:36px;height:36px}
.login-box .card{padding:20px 22px}
.login-box .card h2{font-size:18px;font-weight:600;margin:0 0 14px}
.login-box .b{width:100%;justify-content:center;height:38px;font-size:15px}
.login-lang{text-align:center;font-size:13px;color:var(--rail-muted);margin:14px 0 0}
.login-lang a{color:var(--rail-text);text-decoration:none;padding:4px 6px;border-radius:6px}
.login-lang a:hover{background:var(--rail-hover);color:#fff}
html[lang=en] .login-lang a[data-setlang=en],html[lang=de-CH] .login-lang a[data-setlang=de]{color:#fff;font-weight:600}
.sess td small{color:var(--mut)}
/* Phone: device list without IP column, sign-in with distance to the notch */
@media (max-width:700px){
  .sess th:nth-child(2),.sess td:nth-child(2),.sess th:nth-child(3),.sess td:nth-child(3),.sess th:nth-child(5),.sess td:nth-child(5){display:none}
  .login-box{margin-top:max(8vh,env(safe-area-inset-top))}
}
/* My account: theme */
.theme-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:4px 0 8px}
.theme-opt{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer;background:var(--card)}
.theme-opt input{position:absolute;opacity:0;pointer-events:none}
.theme-opt.on{border-color:var(--acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--acc) 30%,transparent)}
.theme-opt:focus-within{outline:2px solid var(--acc);outline-offset:2px}
.theme-sw{grid-row:1/3;width:34px;height:34px;border-radius:8px;border:1px solid var(--line)}
.theme-sw.light{background:linear-gradient(135deg,#fff 50%,#e8ecf0 50%)}
.theme-sw.dark{background:linear-gradient(135deg,#1b2129 50%,#0d1117 50%)}
.theme-sw.auto{background:linear-gradient(135deg,#fff 50%,#1b2129 50%)}
.theme-opt small{color:var(--mut);font-size:12px}

/* Language: abbreviation instead of colour field */
.theme-sw.lang{display:grid;place-items:center;font:700 12px/1 var(--font);color:var(--acc);background:var(--row);border:1px solid var(--line)}
