:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; background: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; }
.account-card { width: 100%; max-width: 440px; padding: 32px; border: 1px solid #e5e7eb; border-radius: 20px; background: white; box-shadow: 0 12px 36px rgb(15 23 42 / 6%); }
.back-link { color: #2563eb; font-size: 14px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.brand { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 32px; border-radius: 12px; color: white; background: #2563eb; font-weight: 700; }
h1 { margin: 20px 0 8px; font-size: 28px; }
.intro, .field-hint, .identity-label { color: #6b7280; }
.intro { margin: 0 0 20px; font-size: 14px; }
.message { margin: 16px 0; min-height: 22px; color: #2563eb; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.message.error { color: #b91c1c; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f3f4f6; margin-bottom: 24px; }
button, input, .button-link { font: inherit; }
button { cursor: pointer; border: 0; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 8px; background: transparent; color: #6b7280; }
.auth-tabs button[aria-pressed="true"] { color: #2563eb; background: white; box-shadow: 0 1px 3px rgb(15 23 42 / 10%); font-weight: 600; }
label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 9px; color: #1f2937; background: white; }
input::placeholder { color: #9ca3af; font-size: 13px; }
:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 3px; }
input:focus { border-color: #2563eb; }
.field-hint { margin: 8px 0 0; font-size: 12px; }
.primary, .secondary { display: block; width: 100%; padding: 12px; margin-top: 24px; border-radius: 9px; text-align: center; }
.primary { background: #2563eb; color: white; font-weight: 600; }
.primary:hover { background: #1d4ed8; }
.secondary { margin-top: 12px; color: #4b5563; background: #f3f4f6; }
.secondary:hover { background: #e5e7eb; }
.button-link { text-decoration: none; }
button:disabled { cursor: wait; opacity: .6; }
.identity-label { font-size: 14px; }
.identity { margin: 8px 0 24px; font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 20px 16px; } .account-card { padding: 24px; } }
