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

* {
    box-sizing: border-box;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top, #1a2030 0, #0b0d12 48%);
}

.site-main {
    min-height: 100vh;
    padding: clamp(1.25rem, 4vw, 3rem) 1.25rem 4rem;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(65, 75, 96, 0.72);
    background: rgba(11, 13, 18, 0.94);
    backdrop-filter: blur(1rem);
}

.site-brand,
.site-nav a,
.site-account a {
    color: #f5f7fb;
    font-weight: 700;
    text-decoration: none;
}

.site-brand {
    font-size: 1.1rem;
}

.site-brand span {
    color: #8cf0bb;
}

.site-nav {
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid #30384b;
    border-radius: 999px;
    background: #10141d;
}

.site-nav a {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #a9b5cf;
}

.site-nav a[aria-current="page"] {
    color: #07140e;
    background: #8cf0bb;
}

.site-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: #a9b5cf;
    font-size: 0.9rem;
}

.site-account a {
    color: #8cf0bb;
}

.site-messages {
    width: min(100%, 78rem);
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #2f765a;
    border-radius: 0.7rem;
    color: #c9f9df;
    background: #103426;
}

.site-messages p {
    margin: 0;
}

.status-card {
    width: min(100%, 36rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid #30384b;
    border-radius: 1rem;
    background: rgba(18, 22, 31, 0.92);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.35);
    margin: clamp(1rem, 8vh, 5rem) auto 0;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: #a9b5cf;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(1.9rem, 6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.status-list {
    margin: 2rem 0 0;
}

.status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #2c3343;
}

.status-list dt {
    color: #cbd3e3;
}

.status-list dd {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #8cf0bb;
    font-weight: 700;
}

.indicator {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0.8rem currentColor;
}

.status-list dd.error {
    color: #ff9c9c;
}

.asset-reference {
    margin: 1rem 0 0;
    color: #818ca2;
    font-size: 0.8125rem;
}

code {
    overflow-wrap: anywhere;
}

.account-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2c3343;
}

.account-panel p {
    margin: 0;
    color: #cbd3e3;
}

.secondary-button,
.login-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid #2fbf83;
    border-radius: 0.65rem;
    color: #f5f7fb;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.login-button:hover,
.login-button:focus-visible {
    background: #0b6b4a;
    outline: 2px solid #8cf0bb;
    outline-offset: 2px;
}

.dev-login-card {
    width: min(100%, 43rem);
}

.messages {
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid #506079;
    border-radius: 0.65rem;
    color: #f5f7fb;
    background: #202737;
}

.messages p {
    margin: 0;
}

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

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

.form-field label {
    color: #dce3f0;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #414b60;
    border-radius: 0.65rem;
    color: #f5f7fb;
    background: #10141d;
    font: inherit;
}

.form-field input:focus {
    border-color: #8cf0bb;
    outline: 2px solid #2fbf83;
    outline-offset: 2px;
}

.login-button {
    color: #07140e;
    background: #8cf0bb;
}

.login-button:hover,
.login-button:focus-visible {
    color: #f5f7fb;
}

.dev-login-form .login-button {
    width: 100%;
    margin-top: 0.25rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #8cf0bb;
}

@media (max-width: 34rem) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
    }

    .site-account span {
        display: none;
    }

    .account-panel,
    .dev-login-form {
        align-items: stretch;
        flex-direction: column;
    }

    .secondary-button,
    .login-button {
        width: 100%;
    }
}
