* {
    box-sizing: border-box;
}

:root {
    --green: #008a63;
    --green-dark: #006f50;
    --green-light: #e9f7f2;
    --ink: #16332c;
    --muted: #6c7e79;
    --border: #dce7e3;
    --bg: #f5f8f7;
    --white: #fff;
    --danger-bg: #fff1f1;
    --danger: #b42318;
}

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

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

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #006f50 0%, #008a63 55%, #0a9a71 100%);
    color: white;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -170px;
    border: 70px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.brand-content {
    max-width: 560px;
    margin: auto;
    padding: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: white;
    color: var(--green);
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.13);
}

.logo-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 15px;
}

.brand-name {
    margin-top: 16px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.brand-subtitle {
    margin-top: 3px;
    opacity: .82;
    font-size: 14px;
}

.brand-message {
    margin-top: 100px;
}

.brand-message h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.brand-message p {
    max-width: 460px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.86);
}

.security-note {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 60px;
    padding: 16px 18px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    border-radius: 14px;
}

.security-note small {
    display: block;
    margin-top: 3px;
    opacity: .75;
}

.shield {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background: #fbfdfc;
}

.login-card {
    width: 100%;
    max-width: 470px;
}

.mobile-logo {
    display: none;
}

.eyebrow {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.welcome h2 {
    margin: 10px 0 8px;
    font-size: 38px;
    letter-spacing: -1.2px;
}

.welcome p {
    margin: 0 0 32px;
    color: var(--muted);
    line-height: 1.6;
}

.alert {
    padding: 13px 15px;
    margin-bottom: 20px;
    border: 1px solid #ffd0d0;
    border-radius: 10px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

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

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .55;
    font-size: 15px;
}

input {
    width: 100%;
    height: 54px;
    padding: 0 54px 0 44px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
    outline: none;
    color: var(--ink);
    font-size: 15px;
    transition: .2s;
}

input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0,138,99,.09);
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--green-dark);
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.login-button {
    width: 100%;
    height: 55px;
    margin-top: 27px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,138,99,.18);
    transition: .2s;
}

.login-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: .75;
    cursor: wait;
}

.arrow {
    font-size: 20px;
}

.no-self-service {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 15px;
    border-radius: 11px;
    background: var(--green-light);
    color: #42655b;
    font-size: 12px;
    line-height: 1.5;
}

.no-self-service p {
    margin: 0;
}

footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
    color: #92a19d;
    font-size: 11px;
}

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

.topbar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topbar-brand strong {
    display: block;
}

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

.logout {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

.dashboard {
    max-width: 1150px;
    margin: 0 auto;
    padding: 60px 30px;
}

.dashboard-heading h1 {
    margin: 8px 0;
}

.dashboard-heading p {
    color: var(--muted);
}

.portal-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portal-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.portal-card > span {
    font-size: 27px;
}

.portal-card h3 {
    margin-bottom: 8px;
}

.portal-card p {
    color: var(--muted);
    line-height: 1.5;
}

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

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 25px;
    }

    .mobile-logo {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 65px;
    }

    .mobile-logo .brand-name {
        margin-top: 0;
        font-size: 20px;
    }

    .mobile-logo small {
        color: var(--muted);
    }

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