:root {
    color-scheme: light;
    --navy-950: #101a24;
    --navy-900: #172431;
    --navy-800: #233442;
    --slate-700: #405260;
    --slate-500: #6f7f8a;
    --slate-300: #c9d2d8;
    --slate-200: #dde4e8;
    --slate-100: #eef2f4;
    --surface: #ffffff;
    --green-700: #39755e;
    --green-600: #4d8c72;
    --green-100: #e7f2ed;
    --red-700: #9b3d46;
    --red-100: #f8e8ea;
    --shadow: 0 22px 60px rgba(18, 31, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--slate-100);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--navy-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 12% 15%, rgba(77, 140, 114, 0.16), transparent 30%),
        linear-gradient(135deg, #e9eef0 0%, #f7f9fa 55%, #e8eeef 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    width: min(1040px, 100%);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 49, 0.08);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 7vw, 82px);
    color: #fff;
    background:
        linear-gradient(155deg, rgba(77, 140, 114, 0.22), transparent 50%),
        var(--navy-950);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: #fff;
    background: var(--green-600);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark-small {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 13px;
    font-size: 15px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #8fc5ad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.brand-panel h1,
.welcome-card h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.brand-copy {
    max-width: 560px;
    margin: 24px 0 34px;
    color: #c5d0d7;
    font-size: 18px;
    line-height: 1.7;
}

.security-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    color: #d9e2e6;
    list-style: none;
}

.security-list li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 11px;
    border-radius: 50%;
    color: #b9ddcd;
    background: rgba(77, 140, 114, 0.23);
    font-size: 12px;
    font-weight: 800;
}

.login-card {
    align-self: center;
    padding: clamp(36px, 5.5vw, 66px);
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 5px var(--green-100);
}

.login-card h2 {
    margin: 20px 0 10px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.login-card > p {
    margin: 0 0 30px;
    color: var(--slate-500);
    line-height: 1.6;
}

label {
    display: block;
    margin: 18px 0 8px;
    color: var(--navy-800);
    font-size: 13px;
    font-weight: 750;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--slate-300);
    border-radius: 12px;
    outline: none;
    background: #fbfcfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus {
    border-color: var(--green-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(77, 140, 114, 0.13);
}

button {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    color: #fff;
    background: var(--green-700);
    box-shadow: 0 10px 24px rgba(57, 117, 94, 0.2);
}

.login-card button:hover {
    background: #2f654f;
}

.login-note {
    margin-top: 24px !important;
    padding-top: 20px;
    border-top: 1px solid var(--slate-200);
    font-size: 12px;
}

.alert {
    margin: 18px 0;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    color: var(--red-700);
    background: var(--red-100);
}

.alert-success {
    color: var(--green-700);
    background: var(--green-100);
}

.app-body {
    background: #f1f4f5;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px clamp(20px, 4vw, 58px);
    color: #fff;
    background: var(--navy-950);
}

.topbar-brand,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-brand div:last-child,
.topbar-user > div {
    display: grid;
    gap: 3px;
}

.topbar span {
    color: #aebbc4;
    font-size: 12px;
}

.topbar-user {
    text-align: right;
}

.button-secondary {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.app-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto;
}

.welcome-card {
    padding: clamp(34px, 5vw, 58px);
    border-radius: 22px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(77, 140, 114, 0.25), transparent 60%),
        var(--navy-900);
    box-shadow: 0 16px 42px rgba(23, 36, 49, 0.12);
}

.welcome-card h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.welcome-card > p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: #c7d1d7;
    line-height: 1.7;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.metric-card {
    min-height: 220px;
    padding: 28px;
    border: 1px solid #e1e7ea;
    border-radius: 18px;
    background: #fff;
}

.metric-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--green-700);
    background: var(--green-100);
    font-size: 12px;
    font-weight: 850;
}

.metric-card h2 {
    margin: 22px 0 10px;
    font-size: 19px;
}

.metric-card p {
    min-height: 54px;
    margin: 0 0 22px;
    color: var(--slate-500);
    font-size: 14px;
    line-height: 1.6;
}

.metric-card-muted {
    background: #f8fafb;
}

.badge {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 11px;
    font-weight: 800;
}

.badge-success {
    color: var(--green-700);
    background: var(--green-100);
}

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

    .brand-panel {
        min-height: 360px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .login-body {
        display: block;
        padding: 0;
    }

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .brand-panel,
    .login-card {
        padding: 34px 24px;
    }

    .brand-panel {
        min-height: 330px;
    }

    .topbar {
        align-items: flex-start;
        gap: 18px;
    }

    .topbar-user > div {
        display: none;
    }

    .app-shell {
        width: min(100% - 24px, 1180px);
        margin: 20px auto;
    }
}
