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

* {
    box-sizing: border-box;
}

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

body {
    background:
        radial-gradient(
            circle at top,
            #182237 0,
            #0b101a 48%,
            #06090f 100%
        );
    color: #edf2f7;
}

button,
input {
    font: inherit;
}

a {
    color: #8fc7ff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card,
.dashboard-card {
    width: min(100%, 460px);
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 32px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
    background: #edf2f7;
    color: #101827;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle,
.intro,
.security-note,
.dashboard-note {
    color: #9ca9ba;
}

h1 {
    margin: 0 0 10px;
}

.intro {
    margin: 0 0 26px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 0.92rem;
    font-weight: 650;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid #344156;
    border-radius: 10px;
    background: #0d1420;
    color: #f8fafc;
    padding: 13px 14px;
    outline: none;
}

input:focus {
    border-color: #93c5fd;
    box-shadow:
        0 0 0 3px rgba(147, 197, 253, 0.12);
}

button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 750;
    background: #f1f5f9;
    color: #111827;
}

.alert {
    padding: 12px 14px;
    margin: 18px 0;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.13);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.security-note,
.dashboard-note {
    margin-top: 24px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.topbar {
    min-height: 72px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b111c;
}

.topbar span {
    display: block;
    color: #8996a8;
    font-size: 0.8rem;
    margin-top: 2px;
}

.topbar form {
    margin: 0;
}

.logout-button {
    width: auto;
    margin: 0;
    padding: 9px 15px;
}

.dashboard-shell {
    padding: 48px 24px;
}

.dashboard-card {
    margin: 0 auto;
    width: min(100%, 760px);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow:
        0 0 20px rgba(74, 222, 128, 0.7);
    margin-bottom: 18px;
}

.status-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.status-grid div {
    background: #0c1320;
    border: 1px solid #283348;
    border-radius: 12px;
    padding: 16px;
}

.status-grid span {
    display: block;
    color: #8896a8;
    font-size: 0.78rem;
    margin-bottom: 7px;
}
