:root {
    --paper: rgba(255, 255, 255, 0.1);
    --paper-strong: rgba(255, 255, 255, 0.14);
    --ink: #f8fbff;
    --muted: rgba(248, 251, 255, 0.82);
    --line: rgba(255, 255, 255, 0.22);
    --accent: #60a5fa;
    --accent-deep: #bfdbfe;
    --danger: #ef4444;
    --success: #34d399;
    --shadow: rgba(6, 24, 44, 0.28);
    --field-bg: rgba(255, 255, 255, 0.94);
    --field-ink: #10213e;
    --field-line: rgba(148, 163, 184, 0.42);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(125, 211, 252, 0.35), transparent 28rem),
        linear-gradient(180deg, #0d4ed8 0%, #1e3a8a 100%);
}

a {
    color: var(--accent-deep);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font: 700 0.78rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.intro {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.6;
}

.login-shell,
.dashboard-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.login-panel,
.content-group,
.error-panel,
.status-strip article {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px var(--shadow);
    backdrop-filter: blur(10px);
}

.login-panel {
    width: min(32rem, 100%);
    padding: 2rem;
}

.login-panel h1,
.hero h1 {
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.login-panel h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
}

.login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-form label {
    display: grid;
    gap: 0.35rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--field-line);
    background: var(--field-bg);
    color: var(--field-ink);
}

.login-form button,
.inline-form button,
.secondary-button {
    border: 0;
    padding: 0.8rem 1rem;
    background: var(--accent);
    color: #0b1b36;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.secondary-button {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fbff;
}

.inline-form button {
    background: var(--danger);
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    color: #fff;
}

.inline-form button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dashboard-shell {
    padding: 2rem 0 3rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-strip article {
    padding: 1rem;
}

.status-label {
    display: block;
    margin-bottom: 0.45rem;
    font: 700 0.76rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.status-strip strong {
    font-size: 1.3rem;
}

.flash {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.flash-success {
    background: rgba(52, 211, 153, 0.16);
    color: #dcfce7;
}

.flash-error {
    background: rgba(239, 68, 68, 0.14);
    color: #fee2e2;
}

.content-group,
.error-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.section-header h2,
.error-panel h2 {
    margin: 0;
    font-size: 1.7rem;
}

.section-count {
    border: 1px solid var(--line);
    padding: 0.3rem 0.6rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
}

thead th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    font: 700 0.76rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

tbody td {
    vertical-align: top;
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.name-cell {
    min-width: 10rem;
    font-weight: 700;
}

code {
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: start;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }
}
