:root {
    --brand-primary: #007BFF;
    --brand-electric: #00AFFF;
    --brand-cyan: #00D4FF;
    --brand-navy: #061A33;
    --brand-dark: #020B16;
    --brand-surface: #F5F8FC;
    --brand-card: #FFFFFF;
    --brand-silver: #D6E2F0;
    --brand-muted: #6B7A90;
    --brand-text: #102033;
    --brand-success: #16A34A;
    --brand-warning: #F59E0B;
    --brand-danger: #DC2626;
    --shadow-soft: 0 18px 50px rgba(16, 32, 51, 0.1);
    --shadow-blue: 0 18px 40px rgba(0, 123, 255, 0.28);
    --radius: 12px;
    --sidebar-width: 292px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--brand-text);
    background: var(--brand-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.muted {
    color: var(--brand-muted);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--brand-electric);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-login {
    width: min(230px, 78vw);
    max-height: 92px;
}

.brand-logo-small {
    width: 48px;
    height: 48px;
    padding: 5px;
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.brand-logo-compact {
    width: 52px;
    height: 52px;
    padding: 5px;
    flex: 0 0 auto;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
}

.auth-page {
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 212, 255, 0.2), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(0, 123, 255, 0.28), transparent 30%),
        linear-gradient(145deg, var(--brand-navy), var(--brand-dark));
}

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

.auth-card {
    width: min(100%, 446px);
    padding: 28px;
    border: 1px solid rgba(214, 226, 240, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    color: var(--brand-text);
}

.auth-brand {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-weight: 800;
}

.auth-card h1 {
    margin: 18px 0 8px;
    font-size: 2rem;
    line-height: 1.1;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius);
    padding: 0 14px;
    color: var(--brand-text);
    background: #fff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus {
    border-color: var(--brand-electric);
    box-shadow: 0 0 0 4px rgba(0, 175, 255, 0.14);
}

.auth-form input:disabled {
    background: #eef4fb;
    color: var(--brand-muted);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 58px;
    min-height: 34px;
    border: 1px solid rgba(0, 175, 255, 0.22);
    border-radius: 9px;
    color: var(--brand-primary);
    background: rgba(0, 175, 255, 0.09);
    cursor: pointer;
}

.password-toggle:hover {
    border-color: var(--brand-electric);
    background: rgba(0, 212, 255, 0.14);
}

.button {
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
    box-shadow: var(--shadow-blue);
}

.button-primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(0, 175, 255, 0.36);
}

.dashboard-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(84vw, var(--sidebar-width));
    padding: 22px;
    border-right: 1px solid rgba(214, 226, 240, 0.12);
    background:
        linear-gradient(180deg, rgba(0, 175, 255, 0.1), transparent 32%),
        var(--brand-navy);
    box-shadow: 18px 0 50px rgba(2, 11, 22, 0.22);
    transform: translateX(-105%);
    transition: transform 180ms ease;
}

.sidebar-open .app-sidebar {
    transform: translateX(0);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.sidebar-nav a {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    color: #fff;
    border-color: rgba(0, 212, 255, 0.34);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.26), rgba(0, 212, 255, 0.12));
}

.sidebar-nav a[aria-disabled="true"] {
    cursor: default;
    opacity: 0.58;
}

.dashboard-main {
    min-height: 100vh;
    padding: 18px;
}

.topbar {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.topbar h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 99px;
    background: var(--brand-navy);
}

.content-panel {
    padding: 18px 0 72px;
}

.status-card {
    position: relative;
    max-width: 780px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius);
    background: var(--brand-card);
    box-shadow: var(--shadow-soft);
}

.status-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
}

.status-card h2 {
    position: relative;
    margin: 0 0 10px;
    color: var(--brand-navy);
    font-size: 1.35rem;
}

.status-card p {
    position: relative;
}

.status-card p:last-child {
    margin-bottom: 0;
    color: var(--brand-muted);
}

.watermark-logo {
    position: absolute;
    right: 18px;
    bottom: 12px;
    width: min(230px, 48vw);
    max-height: 160px;
    opacity: 0.045;
    pointer-events: none;
}

.app-footer {
    position: fixed;
    right: 18px;
    bottom: 12px;
    left: 18px;
    color: var(--brand-muted);
    font-size: 0.84rem;
    text-align: center;
    pointer-events: none;
}

@media (min-width: 860px) {
    .app-sidebar {
        transform: none;
        box-shadow: none;
    }

    .dashboard-main {
        margin-left: var(--sidebar-width);
        padding: 28px;
    }

    .icon-button {
        display: none;
    }

    .content-panel {
        padding-top: 28px;
    }

    .auth-card {
        padding: 38px;
    }
}
