
:root {
    --navy: #142b4a;
    --blue: #2457a7;
    --teal: #159b91;
    --text: #25344a;
    --muted: #718096;
    --border: #e2e8f0;
    --surface: #ffffff;
    --page: #f3f6fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--page);
}

.login-page {
    min-height: 100vh;
    padding: 0 6%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 8% 45%, #e4efff 0, transparent 38%),
        var(--page);
}

.portal-header {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--navy);
    text-decoration: none;
}

.brand-mark,
.login-icon {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-mark {
    width: 47px;
    height: 47px;
    border-radius: 13px;
}

.portal-brand strong,
.portal-brand small {
    display: block;
}

.portal-brand strong {
    font-size: 17px;
}

.portal-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.secure-label {
    color: #52647a;
    font-size: 12px;
    font-weight: 600;
}

.secure-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.login-layout {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 38px auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.welcome-panel {
    padding: 20px 0;
}

.eyebrow {
    display: block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.welcome-panel h1 {
    margin: 20px 0 18px;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.welcome-description {
    max-width: 490px;
    color: #66758a;
    font-size: 15px;
    line-height: 1.9;
}

.feature-list {
    display: grid;
    gap: 24px;
    margin-top: 38px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #d7e4f8;
    border-radius: 12px;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.feature-item strong {
    display: block;
    margin: 2px 0 5px;
    color: var(--navy);
    font-size: 14px;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.welcome-footer {
    margin-top: 48px;
    color: #8491a3;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.welcome-footer span {
    padding: 0 8px;
    color: var(--teal);
}

.login-card {
    width: 100%;
    max-width: 450px;
    justify-self: end;
    padding: 36px;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(28, 48, 80, 0.09);
}

.login-card-heading {
    margin-bottom: 27px;
}

.login-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 23px;
    border-radius: 12px;
    font-size: 13px;
}

.login-card h2 {
    margin: 10px 0 8px;
    color: var(--navy);
    font-size: 26px;
    letter-spacing: -0.5px;
}

.login-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-field {
    margin-bottom: 19px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #34445a;
    font-size: 13px;
    font-weight: 700;
}

.form-field input {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-field input:focus {
    border-color: #5485d3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(55, 112, 196, 0.12);
}

.captcha-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
    padding: 12px 14px;
    border: 1px dashed #cbd8ea;
    border-radius: 10px;
    background: #f5f8fd;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.captcha-refresh {
    color: var(--blue);
    font-size: 12px;
    text-decoration: none;
}

.captcha-refresh:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, var(--navy), var(--blue));
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(36, 87, 167, 0.23);
}

.login-note {
    margin: 18px 0 0;
    color: #8793a4;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.notice-success {
    border: 1px solid #b9e4d1;
    background: #effaf4;
    color: #176b49;
}

.notice-error {
    border: 1px solid #f2c8c8;
    background: #fff4f4;
    color: #a12c2c;
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 0;
    border-top: 1px solid var(--border);
    color: #8793a4;
    font-size: 11px;
}

@media (max-width: 850px) {
    .login-page {
        padding: 0 5%;
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 28px auto;
    }

    .welcome-panel {
        padding-bottom: 0;
    }

    .welcome-panel h1 {
        font-size: 36px;
    }

    .feature-list {
        gap: 17px;
        margin-top: 25px;
    }

    .welcome-footer {
        margin-top: 25px;
    }

    .login-card {
        max-width: 100%;
        justify-self: stretch;
        padding: 27px;
    }
}

@media (max-width: 480px) {
    .portal-header {
        min-height: 75px;
    }

    .portal-brand strong {
        font-size: 14px;
    }

    .portal-brand small {
        font-size: 10px;
    }

    .secure-label {
        display: none;
    }

    .welcome-panel h1 {
        font-size: 32px;
    }

    .portal-footer {
        flex-direction: column;
        gap: 7px;
    }
}
.department-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.department-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.department-brand-text h1 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    color: #142d50;
}

.department-brand-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 600px) {
    .department-logo {
        width: 52px;
        height: 52px;
    }

    .department-brand-text h1 {
        font-size: 16px;
    }
}