:root { font-family: Inter, system-ui, -apple-system, sans-serif; color: #334155; background: #f8fafc; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 16px; background-position: center; background-size: cover; background-attachment: fixed; }
.login-card { width: 100%; max-width: 420px; padding: 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 10px 30px rgb(15 23 42 / 8%); }
.brand { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 0 28px; color: #334155; font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 28px; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; flex-shrink: 0; }
.field { margin-bottom: 16px; }
label { display: block; margin-bottom: 8px; color: #475569; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 12px; color: #0f172a; font: inherit; font-size: 16px; }
input:focus { outline: 3px solid rgb(37 99 235 / 20%); border-color: #2563eb; }
.button { display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid #2563eb; border-radius: 12px; background: #2563eb; color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.button:hover { background: #1d4ed8; border-color: #1d4ed8; }
.button-secondary { border-color: #cbd5e1; background: #fff; color: #334155; }
.button-secondary:hover { background: #f8fafc; border-color: #94a3b8; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #64748b; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.divider::before, .divider::after { height: 1px; flex: 1; background: #e2e8f0; content: ''; }
.forgot-link { display: block; width: fit-content; margin: 8px 0 0 auto; color: #2563eb; font-size: 14px; font-weight: 500; line-height: 24px; text-align: right; }
.notice { margin: 0 0 20px; padding: 12px; border-radius: 12px; font-size: 16px; line-height: 1.5; }
.notice-error { background: #fef2f2; color: #b91c1c; }
.notice-warning { background: #fffbeb; color: #92400e; }
.notice-success { background: #f0fdf4; color: #166534; }
#passkey-error { margin: 16px 0 0; }
dialog { width: min(calc(100% - 32px), 420px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgb(15 23 42 / 25%); }
dialog::backdrop { background: rgb(15 23 42 / 50%); backdrop-filter: blur(4px); }
.dialog-content { padding: 24px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dialog-title { margin: 0; color: #0f172a; font-size: 20px; line-height: 1.1; }
.dialog-close { width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #475569; font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #f1f5f9; }
.dialog-copy { margin: -12px 0 20px; color: #475569; font-size: 16px; line-height: 1.5; }
@media (max-width: 480px) { .login-card { padding: 24px; } }
