* { box-sizing: border-box; }

:root {
    --bg: #0b1020;
    --panel: rgba(18, 26, 44, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f5f7fb;
    --muted: #9aa8c0;
    --accent: #62a6ff;
    --success: #2ad38b;
    --warn: #f4b740;
    --danger: #ff6a78;
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(98,166,255,0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(42,211,139,0.14), transparent 24%),
        linear-gradient(180deg, #0b1020 0%, #11172b 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.auth-info,
.auth-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.auth-info h1,
.auth-panel h2 {
    margin-top: 0;
}

.auth-copy,
.subtle,
.status-text,
.text-muted {
    color: var(--muted);
}

.status-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 20px;
}

.status-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
}

.status-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font: inherit;
}

.primary-btn {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(98,166,255,0.45);
    background: linear-gradient(180deg, rgba(98,166,255,0.34), rgba(98,166,255,0.14));
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.flash {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.flash.success { background: rgba(42,211,139,0.14); border-color: rgba(42,211,139,0.34); }
.flash.warn { background: rgba(244,183,64,0.16); border-color: rgba(244,183,64,0.34); }
.flash.error { background: rgba(255,106,120,0.16); border-color: rgba(255,106,120,0.34); }
.flash.neutral { background: rgba(148,163,184,0.16); border-color: rgba(148,163,184,0.34); }
.flash.hidden { display: none; }

.aux-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

a { color: #c9e8ff; text-decoration: none; }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.pill.up {
    background: rgba(42,211,139,0.13);
    border-color: rgba(42,211,139,0.34);
    color: #b8ffe1;
}

.pill.degraded,
.pill.warn {
    background: rgba(244,183,64,0.14);
    border-color: rgba(244,183,64,0.32);
    color: #ffe3a5;
}

.pill.down,
.pill.error {
    background: rgba(255,106,120,0.14);
    border-color: rgba(255,106,120,0.34);
    color: #ffd7dc;
}

.pill.unknown,
.pill.initializing {
    background: rgba(148,163,184,0.14);
    border-color: rgba(148,163,184,0.32);
    color: #dbe4f0;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
}
