:root {
    color-scheme: light dark;
}

body {
    font-family: system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(1200px 600px at 20% -10%, #dbeafe, transparent),
        radial-gradient(900px 500px at 100% 0%, #ecfdf5, transparent),
        #0f172a;
    color: #e2e8f0;
}

.card {
    width: min(420px, 92vw);
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.logo {
    width: min(280px, 100%);
    height: auto;
    display: block;
}

h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.muted {
    color: #94a3b8;
    font-size: .95rem;
    margin: 0 0 20px;
}

label {
    display: block;
    font-size: .85rem;
    margin: 12px 0 6px;
    color: #cbd5e1;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0b1220;
    color: inherit;
}

button {
    margin-top: 18px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    opacity: .75;
    cursor: progress;
}

/* Sign-in loader: full-screen overlay with a spinner, like the InteliView sign-in. */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .72);
}

#loader[hidden] {
    display: none;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: .3em solid #2563eb;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate .75s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 1.6s;
    }
}

.err {
    background: #7f1d1d;
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
}

.human-check {
    margin-top: 18px;
    min-height: 65px;
    display: flex;
    justify-content: center;
}
