:root { color-scheme: light dark; font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #e7f1ff 0, #f6f8fb 46%, #eef2f7 100%); color: #172033; }
main { width: min(520px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 36px; }
header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
header p { margin: 5px 0 0; color: #657086; line-height: 1.55; }
.logo { display: grid; flex: 0 0 54px; height: 54px; place-items: center; border-radius: 17px; background: #1677ff; color: white; font-size: 25px; font-weight: 800; box-shadow: 0 12px 26px #1677ff35; }
section, details { margin: 16px 0; padding: 22px; border: 1px solid #dfe5ee; border-radius: 18px; background: #ffffffed; box-shadow: 0 12px 36px #20304d12; }
h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
h2 { margin: 0 0 8px; font-size: 19px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input, button { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; font: inherit; }
input { border: 1px solid #cbd4e1; background: #fff; color: #172033; outline: none; }
input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px #1677ff20; }
button { margin-top: 12px; border: 0; background: #1677ff; color: white; font-weight: 750; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; transform: none; }
button.secondary { border: 1px solid #cbd4e1; background: #fff; color: #27344a; }
.muted, .hint { color: #687386; }
.hint { margin: 14px 2px 0; font-size: 13px; line-height: 1.55; }
.notice { padding: 12px 14px; border-radius: 10px; background: #eef5ff; color: #315780; line-height: 1.55; }
.success { border-color: #bde5cd; background: #effbf4; color: #17623a; }
.success p { margin: 6px 0 0; }
.danger { margin-top: 22px; background: #fff; color: #bd2f3b; border: 1px solid #edc6ca; }
details { color: #586579; font-size: 14px; line-height: 1.65; box-shadow: none; }
summary { color: #344157; font-weight: 700; cursor: pointer; }
#status { display: block; min-height: 24px; padding: 8px 3px; color: #315780; white-space: pre-wrap; }
#passkeys { padding: 0; list-style: none; }
#passkeys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 0; padding: 10px 12px; border-radius: 10px; background: #f5f7fa; }
#passkeys button { width: auto; min-height: 32px; margin: 0; padding: 5px 10px; background: transparent; color: #bd2f3b; border: 1px solid #edc6ca; }
@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(circle at top, #17243a 0, #10141c 48%); color: #eef2f8; }
  section, details { border-color: #2d3747; background: #191f2a; }
  header p, .muted, .hint, details { color: #aab4c4; }
  input, button.secondary { border-color: #3a4659; background: #111722; color: #eef2f8; }
  .notice { background: #192b43; color: #acd1ff; }
  .success { border-color: #245e41; background: #142d21; color: #9ce0b7; }
  #passkeys li { background: #111722; }
}
