/* ==========================================================================
   eBoxx — authentication surfaces (login, reset, restricted)
   ========================================================================== */

:root {
    --eb-accent:        oklch(0.45 0.155 340);
    --eb-accent-strong: oklch(0.36 0.14 340);
    --eb-accent-deep:   oklch(0.24 0.09 340);
    --eb-ink:           oklch(0.23 0.012 270);
    --eb-muted:         oklch(0.47 0.016 270);
    --eb-border:        oklch(0.908 0.005 260);
    --eb-radius:        14px;
    --eb-radius-sm:     8px;
}

html, body { height: 100%; }

body.eb-auth {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--eb-ink);
    background:
        radial-gradient(1100px 600px at 85% -10%, oklch(0.40 0.13 340 / 0.55), transparent 60%),
        radial-gradient(900px 700px at -10% 110%, oklch(0.30 0.10 300 / 0.5), transparent 55%),
        var(--eb-accent-deep);
    -webkit-font-smoothing: antialiased;
}

.eb-auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.eb-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--eb-radius);
    box-shadow: 0 16px 48px oklch(0.1 0.04 340 / 0.35);
    padding: 36px 32px 32px;
}

.eb-auth-card .eb-auth-logo {
    display: block;
    height: 34px;
    margin-bottom: 6px;
}
.eb-auth-sub {
    color: var(--eb-muted);
    font-size: 0.85rem;
    margin-bottom: 26px;
}

.eb-auth-card .form-floating { margin-bottom: 12px; }
.eb-auth-card .form-control {
    border-color: var(--eb-border);
    border-radius: var(--eb-radius-sm);
    font-size: 0.92rem;
}
.eb-auth-card .form-control:focus {
    border-color: var(--eb-accent);
    box-shadow: 0 0 0 3px oklch(0.45 0.155 340 / 0.18);
}
.eb-auth-card .form-floating > label { color: var(--eb-muted); }

.eb-auth-card .eb-auth-submit,
.eb-auth-card input[type="submit"] {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--eb-radius-sm);
    background: var(--eb-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.22, 1, 0.36, 1), transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.eb-auth-card .eb-auth-submit:hover,
.eb-auth-card input[type="submit"]:hover { background: var(--eb-accent-strong); }
.eb-auth-card .eb-auth-submit:active,
.eb-auth-card input[type="submit"]:active { transform: scale(0.99); }
.eb-auth-card input[type="submit"]:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--eb-accent);
}

.eb-auth-card .alert {
    border-radius: var(--eb-radius-sm);
    font-size: 0.85rem;
}

.eb-auth-footer {
    margin-top: 20px;
    color: oklch(0.9 0.02 340 / 0.75);
    font-size: 0.78rem;
    text-align: center;
}
.eb-auth-footer a { color: #fff; font-weight: 500; text-decoration: none; }

/* Generic content (restricted page etc.) renders on the dark brand bg */
.eb-auth .container { color: #fff; }

/* Error pages (403 / 404 / 500) */
.eb-error {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.eb-error-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 8px;
}
.eb-error-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 24px;
    text-wrap: balance;
}
.eb-error-action {
    max-width: 240px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
