/* id-login — bespoke passkey login for pop.ski.
   Brand tokens mirror the Authentik branding blueprint (accent #1f6feb) and the
   app-registry dark surface so the whole platform reads as one product. */

:root {
    --accent: #1f6feb;
    --accent-press: #195bc4;
    --bg: #0e0f12;
    --surface: #16181c;
    --surface-2: #1d2026;
    --border: #2a2e36;
    --text: #e8eaed;
    --muted: #9aa1ab;
    --danger: #f0616d;
    --radius: 14px;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, #1a1f2b 0%, transparent 60%),
        var(--bg);
    color: var(--text);
    font-family:
        "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.logo {
    height: 40px;
    width: auto;
    margin: 0 auto 18px;
    display: block;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 26px;
    line-height: 1.45;
}

.btn {
    appearance: none;
    border: 0;
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition:
        background 0.15s ease,
        transform 0.05s ease;
}

.btn:hover {
    background: var(--accent-press);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.field {
    text-align: left;
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
}

.msg {
    margin-top: 18px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.msg.error {
    color: var(--danger);
}

.foot {
    margin-top: 22px;
    font-size: 0.8rem;
    color: var(--muted);
}

.foot a {
    color: var(--accent);
    text-decoration: none;
}

.foot a:hover {
    text-decoration: underline;
}

.spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
