* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #a71930;
    --dark-red: #7d1023;
    --deep-red: #5d0b19;
    --gold: #c9a227;
    --dark: #171717;
    --text: #252525;
    --muted: #707070;
    --border: #e5e5e5;
    --background: #f7f7f8;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 48% 52%;
}


/* =====================================================
   LEFT BRAND PANEL
===================================================== */

.login-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(93, 11, 25, .96),
            rgba(167, 25, 48, .88)
        ),
        url("../hero-capitol-governor.jpg");

    background-size: cover;
    background-position: center;
}

.brand-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.12),
            transparent 30%
        );

    pointer-events: none;
}

.login-brand::after {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    right: -250px;
    bottom: -250px;

    border: 80px solid rgba(255,255,255,.05);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 2;

    max-width: 600px;

    padding: 80px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.seal {
    width: 105px;
    height: 105px;

    object-fit: contain;

    margin-bottom: 28px;

    filter:
        drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.government {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: rgba(255,255,255,.75);

    margin-bottom: 18px;
}

.brand-content h1 {
    font-size: clamp(42px, 4vw, 66px);

    line-height: .98;

    font-weight: 800;

    color: white;

    letter-spacing: -2px;
}

.brand-content h1 span {
    display: block;
    color: #f1d66d;
}

.brand-content h2 {
    font-size: 25px;

    color: white;

    font-weight: 600;

    margin-top: 15px;
}

.brand-content p {
    margin-top: 28px;

    max-width: 500px;

    color: rgba(255,255,255,.75);

    line-height: 1.8;

    font-size: 15px;
}


/* =====================================================
   LOGIN PANEL
===================================================== */

.login-panel {
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 510px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    text-decoration: none;

    color: var(--muted);

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 45px;

    transition: .2s ease;
}

.back-home:hover {
    color: var(--red);
}


/* =====================================================
   OFFICE HEADER
===================================================== */

.office-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 35px;
}

.office-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8e9ec;

    color: var(--red);

    border-radius: 14px;

    font-size: 22px;
}

.office-header span {
    display: block;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--red);

    margin-bottom: 5px;
}

.office-header h1 {
    font-size: 24px;

    line-height: 1.25;

    font-weight: 800;

    color: var(--dark);
}

.office-header small {
    display: block;

    margin-top: 5px;

    font-size: 12px;

    color: var(--muted);

    font-weight: 600;
}


/* =====================================================
   ALERT
===================================================== */

.alert {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px 15px;

    border-radius: 10px;

    background: #fff1f2;

    border: 1px solid #ffd5da;

    color: #a71930;

    font-size: 13px;

    margin-bottom: 22px;
}


/* =====================================================
   FORM
===================================================== */

.form-group {
    margin-bottom: 23px;
}

.form-group label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    color: #333;

    margin-bottom: 9px;
}

.input-wrap {
    position: relative;
}

.input-wrap > i:first-child {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #9a9a9a;

    font-size: 14px;

    pointer-events: none;
}

.input-wrap input {
    width: 100%;

    height: 54px;

    padding: 0 48px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #fafafa;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    color: var(--dark);

    transition: .2s ease;
}

.input-wrap input:focus {
    border-color: var(--red);

    background: white;

    box-shadow:
        0 0 0 4px rgba(167,25,48,.08);
}

.input-wrap input::placeholder {
    color: #aaa;
}

.password-toggle {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #999;

    cursor: pointer;

    font-size: 14px;
}


/* =====================================================
   OPTIONS
===================================================== */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 5px 0 25px;

    font-size: 12px;
}

.remember {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #666;

    cursor: pointer;
}

.remember input {
    accent-color: var(--red);
}

.login-options a {
    color: var(--red);

    text-decoration: none;

    font-weight: 600;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {
    width: 100%;

    height: 56px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--dark-red)
        );

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    box-shadow:
        0 8px 20px rgba(167,25,48,.20);

    transition: .25s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(167,25,48,.27);
}

.login-button i {
    transition: .2s ease;
}

.login-button:hover i {
    transform: translateX(4px);
}


/* =====================================================
   SECURITY NOTE
===================================================== */

.security-note {
    display: flex;

    gap: 13px;

    margin-top: 28px;

    padding: 17px;

    border-radius: 10px;

    background: #f7f8f9;

    border: 1px solid #ececec;
}

.security-note > i {
    color: #56825e;

    font-size: 17px;

    margin-top: 2px;
}

.security-note strong {
    display: block;

    font-size: 12px;

    margin-bottom: 4px;

    color: #333;
}

.security-note p {
    color: #858585;

    font-size: 11px;

    line-height: 1.5;
}


/* =====================================================
   NO OFFICE
===================================================== */

.no-office {
    text-align: center;

    padding: 20px 0;
}

.no-office-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f8e9ec;

    color: var(--red);

    font-size: 28px;
}

.no-office h1 {
    font-size: 26px;

    margin-bottom: 10px;
}

.no-office p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 25px;
}

.office-button {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 20px;

    background: var(--red);

    color: white;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;
}


/* =====================================================
   FOOTER
===================================================== */

.login-footer {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #eee;

    margin-top: 45px;

    padding-top: 20px;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 300px;
    }

    .brand-content {
        min-height: 300px;

        padding: 45px;

        justify-content: center;
    }

    .seal {
        width: 70px;
        height: 70px;

        margin-bottom: 18px;
    }

    .brand-content h1 {
        font-size: 42px;
    }

    .brand-content p {
        display: none;
    }

}

@media (max-width: 600px) {

    .login-brand {
        min-height: 250px;
    }

    .brand-content {
        min-height: 250px;

        padding: 30px;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .brand-content h2 {
        font-size: 18px;
    }

    .government {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .login-panel {
        padding: 30px 22px;
    }

    .back-home {
        margin-bottom: 30px;
    }

    .office-header h1 {
        font-size: 20px;
    }

    .login-footer {
        flex-direction: column;
        gap: 7px;
    }

}

.office-icon {
    width: 75px;
    height: 75px;
    min-width: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.office-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}