:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #172033; background: #f5f8fd; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 8% 0, #e1eaff 0, transparent 52%), radial-gradient(ellipse at 100% 5%, #e4f6f1 0, transparent 42%); }
main { width: min(100% - 32px, 610px); margin: 0 auto; padding: 36px 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; margin-bottom: 22px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #2445d7; color: white; }
.brand-label { margin-left: auto; font-size: 13px; color: #64748b; font-weight: 400; }
.card { background: #fff; border: 1px solid #dce4ef; border-radius: 20px; box-shadow: 0 16px 50px #344b7820; overflow: hidden; }
.heading { padding: 26px 30px 22px; border-bottom: 1px solid #e8edf5; }
.eyebrow { font-size: 12px; color: #2445d7; font-weight: 650; margin: 0 0 8px; }
h1 { font-size: 28px; margin: 0 0 9px; line-height: 1.25; }
p { line-height: 1.7; }
.heading > p:last-child { margin: 0; color: #66758b; font-size: 14px; }
.content { padding: 24px 30px 28px; }
.summary { padding: 15px 17px; background: #f5f8ff; border: 1px solid #dde5fb; border-radius: 12px; margin-bottom: 24px; }
dl { margin: 0; font-size: 14px; }
dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin-bottom: 10px; }
dt { color: #697990; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary p { margin: 10px 0 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.required { color: #d34848; }
.optional { font-size: 12px; color: #718096; font-weight: 400; margin-left: 5px; }
input, textarea { display: block; width: 100%; font: inherit; font-weight: 400; border: 1px solid #cdd8e7; border-radius: 9px; padding: 11px 12px; margin-top: 7px; background: white; color: #172033; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: #3157e4; box-shadow: 0 0 0 3px #3157e41a; }
.hint { display: block; font-size: 12px; color: #697990; font-weight: 400; margin-top: 7px; line-height: 1.6; }
button { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #2445d7; border-radius: 10px; padding: 12px 18px; background: #2445d7; color: white; }
#submit { width: 100%; }
#login-submit { width: 100%; }
.account-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#joining-account { overflow-wrap: anywhere; }
button:hover { filter: brightness(.96); }
button:focus-visible { outline: 3px solid #3157e44d; outline-offset: 3px; }
button:disabled, fieldset:disabled button { opacity: .65; cursor: wait; }
.secondary { background: white; border-color: #ccd7e7; color: #334155; }
.error, .success { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; line-height: 1.65; }
.error { background: #fff1f2; border: 1px solid #fecdd3; color: #b4233c; }
.success { background: #edfdf5; border: 1px solid #a7e8c9; color: #16784d; }
.setup-step { padding: 18px; border: 1px solid #dde5f0; border-radius: 12px; margin: 20px 0 0; }
h2 { font-size: 17px; margin: 0; }
.setup-step p { font-size: 13px; color: #607088; }
.step-number { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 8px; border-radius: 50%; background: #edf2ff; color: #2445d7; font-size: 13px; }
#totp-qr { display: block; max-width: 100%; height: auto; margin: 12px auto; }
summary { cursor: pointer; color: #2445d7; font-size: 13px; padding: 8px 0; }
.downloads { display: grid; gap: 10px; }
.download-link { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; border: 1px solid #d9e2f2; padding: 12px; border-radius: 9px; text-decoration: none; color: #2445d7; font-size: 13px; font-weight: 600; }
.download-link:hover { background: #f5f8ff; }
.download-link small { color: #697990; font-weight: 400; overflow-wrap: anywhere; }
#api-url { font-family: ui-monospace, monospace; background: #f3f6fb; font-size: 13px; }
#created-account { overflow-wrap: anywhere; }
code { display: block; padding: 13px; background: #f3f6fb; border-radius: 8px; word-break: break-all; margin: 12px 0; font-size: 16px; letter-spacing: 1px; }
footer { text-align: center; font-size: 12px; color: #8794a8; padding-top: 22px; }
@media (max-width: 480px) { main { padding-top: 20px; } .heading, .content { padding: 22px 20px; } .grid { grid-template-columns: 1fr; gap: 0; } }
