:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07111f;
    color: #e8eef7;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.13), transparent 30rem),
        radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.14), transparent 34rem),
        #07111f;
}

.shell {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 2rem;
    padding: 2rem;
}

.card {
    width: min(42rem, calc(100vw - 2rem));
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.5rem;
    background: rgba(15, 29, 48, 0.78);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.card--login {
    width: min(32rem, calc(100vw - 2rem));
}

.status {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 3rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.025em;
}

.status__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0.28rem rgba(74, 222, 128, 0.12);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 9vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.login-title {
    font-size: clamp(2.6rem, 8vw, 4.4rem);
}

.lead {
    max-width: 34rem;
    margin: 1.6rem 0 2.6rem;
    color: #aebdd0;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.7;
}

.details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.details div {
    display: grid;
    gap: 0.35rem;
}

.details span {
    color: #71849d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.details strong {
    font-size: 0.92rem;
}

.details .online {
    color: #4ade80;
}

footer {
    color: #62748b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.alert {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 0.8rem;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 1.2rem;
}

.auth-form label {
    display: grid;
    gap: 0.5rem;
}

.auth-form label > span {
    color: #aebdd0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.auth-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    outline: none;
    background: rgba(7, 17, 31, 0.72);
    color: #e8eef7;
    font: inherit;
}

.auth-form input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12);
}

.auth-form button,
.button-secondary {
    cursor: pointer;
    border: 0;
    border-radius: 0.75rem;
    font: inherit;
    font-weight: 750;
}

.auth-form button {
    margin-top: 0.4rem;
    padding: 0.95rem 1.2rem;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    color: #04111c;
}

.dashboard-shell {
    width: min(76rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.topbar,
.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.topbar {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.topbar .eyebrow {
    margin-bottom: 0.3rem;
}

.account {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #aebdd0;
    font-size: 0.85rem;
}

.role {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.button-secondary {
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: transparent;
    color: #d8e3f0;
}

.welcome {
    padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.welcome h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.welcome p:not(.eyebrow) {
    max-width: 42rem;
    color: #8fa2b9;
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.summary-grid article {
    display: grid;
    gap: 0.55rem;
    min-height: 10rem;
    padding: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    background: rgba(15, 29, 48, 0.7);
}

.summary-grid article > span,
.summary-grid small {
    color: #71849d;
}

.summary-grid article > span {
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-grid strong {
    align-self: end;
    color: #4ade80;
    font-size: 1.25rem;
}

.summary-grid small {
    font-size: 0.78rem;
}

.summary-grid .muted strong {
    color: #94a3b8;
}

@media (max-width: 34rem) {
    .shell {
        padding: 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .status {
        margin-bottom: 2.4rem;
    }

    .details {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .topbar,
    .welcome,
    .account {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 34.01rem) and (max-width: 60rem) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .status__dot {
        animation: pulse 2.4s ease-out infinite;
    }

    @keyframes pulse {
        70%, 100% {
            box-shadow: 0 0 0 0.65rem rgba(74, 222, 128, 0);
        }
    }
}
