:root {
    --navy: #102b4e;
    --navy-dark: #0b1e36;
    --blue: #245b91;
    --text: #18283b;
    --muted: #718096;
    --border: #e5eaf0;
    --background: #f5f7fa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-shell {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    width: min(100%, 1050px);
    min-height: 610px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 65px rgba(16,43,78,.09);
}

.login-brand {
    padding: 65px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background: linear-gradient(145deg,var(--navy),var(--navy-dark));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 13px;
    color: var(--navy);
    background: white;
    font-weight: 800;
    font-size: 20px;
}

.brand-mark.small {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: white;
    background: var(--navy);
    font-size: 14px;
}

.eyebrow {
    margin: 28px 0 10px;
    color: #8ca9c8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(30px,4vw,42px);
    letter-spacing: -1.5px;
}

.brand-description {
    max-width: 350px;
    line-height: 1.8;
    color: #c7d4e2;
}

.brand-footer {
    margin-top: 65px;
    color: #9bb0c7;
    font-size: 12px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 45px;
}

.login-content { width: min(100%,370px); }

.login-content .eyebrow {
    color: var(--blue);
    margin-top: 0;
}

.login-content h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -.8px;
}

.muted { color: var(--muted); line-height: 1.6; }

label {
    display: block;
    margin: 22px 0 8px;
    font-size: 13px;
    font-weight: 650;
}

input {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    outline: none;
    font: inherit;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36,91,145,.10);
}

.primary-button {
    width: 100%;
    height: 48px;
    margin-top: 25px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover { background: var(--blue); }

.login-note {
    margin-top: 25px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.alert {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    color: #963b35;
    background: #fff1ef;
    font-size: 13px;
}

.topbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: white;
    border-bottom: 1px solid var(--border);
}

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

.top-brand {
    color: var(--navy);
    text-decoration: none;
    font-weight: 750;
}

.top-user { font-size: 13px; font-weight: 600; }
.top-user form { margin: 0; }

.logout-button {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--navy);
    background: white;
    cursor: pointer;
}

.dashboard-main {
    width: min(1120px,90%);
    margin: 42px auto;
}

.welcome-row, .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.welcome-row h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -.8px;
}

.welcome-row .eyebrow { margin: 0 0 8px; }

.status-pill, .count-pill {
    padding: 8px 12px;
    border-radius: 30px;
    color: #76591d;
    background: #fff6df;
    font-size: 12px;
    font-weight: 700;
}

.notice {
    margin: 28px 0;
    padding: 18px 20px;
    border: 1px solid #eadfbd;
    border-left: 4px solid #b48a35;
    border-radius: 9px;
    background: #fffaf0;
    font-size: 13px;
}

.notice p {
    margin: 7px 0 0;
    color: #766a50;
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.summary-card, .content-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-label, .card-caption {
    color: var(--muted);
    font-size: 12px;
}

.summary-card strong {
    color: var(--navy);
    font-size: 20px;
}

.content-card { margin-top: 22px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p { margin: 5px 0 0; font-size: 13px; }

.count-pill {
    color: var(--navy);
    background: #edf3f9;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-top: 22px;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.permission-dot {
    flex: 0 0 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #39836a;
}

.permission-item strong {
    display: block;
    font-size: 12px;
}

.permission-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

@media (max-width:760px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { padding: 35px; min-height: 250px; }
    .brand-footer { margin-top: 25px; }
    .login-panel { padding: 38px 25px; }
    .summary-grid, .permission-grid { grid-template-columns: 1fr; }
    .welcome-row, .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .topbar { padding: 0 5%; }
    .top-user { gap: 8px; }
}
