:root {
    --primary: #174a5b;
    --primary-dark: #123b49;
    --primary-light: #eaf6f7;
    --accent: #0f9d8a;
    --accent-dark: #087f70;
    --white: #ffffff;
    --page: #f1f5f6;
    --text: #26353d;
    --muted: #6f7d84;
    --border: #d7e1e4;
    --success: #23834b;
    --danger: #c0392b;
    --danger-bg: #fff2f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--page);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

.portal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #dce4e6;
}

.header-inner {
    width: 1040px;
    max-width: calc(100% - 40px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
            145deg,
            var(--primary),
            var(--accent)
    );
    color: #ffffff;
    border-radius: 5px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .10);
}

.brand-mark i {
    font-size: 17px;
}

.brand-info h1 {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.4px;
}

.brand-info h1 span {
    color: #35444b;
}

.brand-info p {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #849298;
}

.help-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #748188;
    font-size: 11px;
    font-weight: 500;
}

.help-info i {
    color: var(--accent);
    font-size: 12px;
}

.portal-strip {
    height: 34px;
    background: linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary)
    );
    color: #ffffff;
}

.strip-inner {
    width: 1040px;
    max-width: calc(100% - 40px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
}

.strip-inner i {
    margin-right: 3px;
    font-size: 10px;
}

.strip-arrow {
    opacity: .5;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 20px;
}

.login-box {
    width: 760px;
    max-width: 100%;
    min-height: 410px;
    display: grid;
    grid-template-columns: 43% 57%;
    background: #ffffff;
    border: 1px solid #d9e1e3;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(23, 74, 91, .10);
    overflow: hidden;
}

.login-info {
    padding: 35px 32px;
    background: linear-gradient(
            145deg,
            #174a5b,
            #123b49
    );
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-info::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 25px solid rgba(255, 255, 255, .035);
    right: -95px;
    bottom: -90px;
}

.login-info::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    right: 30px;
    top: 20px;
}

.info-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 4px;
}

.info-icon i {
    font-size: 15px;
}

.info-heading span {
    display: block;
    color: #b9d9dc;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

.info-heading h2 {
    margin-top: 3px;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
}

.info-line {
    width: 35px;
    height: 3px;
    margin-top: 19px;
    background: var(--accent);
    border-radius: 2px;
}

.info-description {
    margin-top: 15px;
    color: #d4e6e8;
    font-size: 12px;
    line-height: 1.7;
}

.service-list {
    margin-top: 21px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
}

.service-item i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #82ddcb;
    font-size: 8px;
}

.info-notice {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 27px;
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.info-notice > i {
    color: #73d9c9;
    font-size: 11px;
    margin-top: 2px;
}

.info-notice strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
}

.info-notice p {
    margin-top: 3px;
    color: #bcd4d7;
    font-size: 9px;
    line-height: 1.5;
}

.login-form-area {
    padding: 38px 42px 32px;
    background: #ffffff;
}

.form-title {
    padding-bottom: 17px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf0f1;
}

.form-title h2 {
    color: #253a43;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.form-title p {
    margin-top: 7px;
    color: #7b878d;
    font-size: 11px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #384951;
    font-size: 11px;
    font-weight: 600;
}

.input-group {
    height: 39px;
    position: relative;
}

.input-group > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #87959b;
    font-size: 12px;
    z-index: 2;
}

.input-group input {
    width: 100%;
    height: 100%;
    padding: 0 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    background: #fafcfc;
    color: #273a42;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: .2s ease;
}

.input-group input::placeholder {
    color: #a0aaae;
    font-size: 11px;
}

.input-group input:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(15, 157, 138, .10);
}

.password-button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 31px;
    height: 31px;
    border: none;
    background: transparent;
    color: #89969b;
    cursor: pointer;
    border-radius: 3px;
}

.password-button:hover {
    background: var(--primary-light);
    color: var(--accent);
}

.captcha-row {
    display: flex;
    gap: 7px;
    margin-bottom: 7px;
}

.captcha-display {
    flex: 1;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border: 1px solid #c9dfdf;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.captcha-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            -25deg,
            transparent 0,
            transparent 8px,
            rgba(15, 157, 138, .07) 9px,
            transparent 10px
    );
}

.captcha-display span {
    position: relative;
    z-index: 2;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 5px;
}

.captcha-refresh {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #64767d;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s ease;
}

.captcha-refresh:hover {
    background: var(--primary-light);
    border-color: #b7d3d4;
    color: var(--accent);
}

.captcha-input {
    margin-top: 7px;
}

.login-button {
    width: 100%;
    height: 41px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(
            135deg,
            var(--primary-dark),
            var(--accent-dark)
    );
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s ease;
}

.login-button:hover {
    background: linear-gradient(
            135deg,
            var(--accent-dark),
            var(--accent)
    );
}

.login-button:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.login-button i {
    font-size: 11px;
}

.button-loader {
    width: 14px;
    height: 14px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.server-message {
    width: 100%;
    margin-bottom: 15px;
    padding: 9px 11px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.error-message {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #f1c8c3;
}

.forgot-password-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 11px;
}

.forgot-password-link {
    border: none;
    background: transparent;
    padding: 2px 0;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.forgot-password-link i {
    margin-right: 5px;
    font-size: 9px;
}

.forgot-password-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.otp-section {
    display: block;
}

.otp-success-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
    background: var(--primary-light);
    border: 1px solid #c9dfdf;
    border-radius: 5px;
}

.otp-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 157, 138, .10);
    color: var(--accent);
}

.otp-icon i {
    font-size: 13px;
}

.otp-success-box strong {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.otp-success-box p {
    margin-top: 3px;
    color: #6f7d84;
    font-size: 9px;
    line-height: 1.5;
}

.otp-success-box p span {
    color: var(--primary);
    font-weight: 700;
}

.otp-form-group {
    margin-bottom: 15px;
}

.otp-input-group input {
    letter-spacing: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.otp-actions {
    display: flex;
    justify-content: center;
    margin-top: 13px;
}

.back-login-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: .2s ease;
}

.back-login-button:hover {
    color: var(--accent);
}

.back-login-button i {
    font-size: 9px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    color: #839095;
    font-size: 9px;
    font-weight: 500;
}

.secure-note i {
    color: var(--success);
    font-size: 10px;
}

.portal-footer {
    height: 42px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #dce4e6;
    color: #7f8b90;
    font-size: 9px;
    font-weight: 500;
}

.portal-footer > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-footer i {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 8px;
}

.forgot-password-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.forgot-password-modal.show {
    display: flex;
}

.forgot-password-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 59, 73, .58);
    backdrop-filter: blur(2px);
}

.forgot-password-dialog {
    position: relative;
    z-index: 2;
    width: 430px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d9e1e3;
    border-radius: 6px;
    box-shadow: 0 20px 55px rgba(23, 74, 91, .25);
    padding: 26px 30px 23px;
    animation: forgotPasswordModalIn .22s ease-out;
}

@keyframes forgotPasswordModalIn {

    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.forgot-password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.forgot-password-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border: 1px solid #c9dfdf;
    color: var(--accent);
    border-radius: 5px;
}

.forgot-password-icon i {
    font-size: 16px;
}

.forgot-password-title span {
    display: block;
    color: #7b878d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.forgot-password-title h2 {
    margin-top: 3px;
    color: #253a43;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 800;
}

.forgot-password-close {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #89969b;
    cursor: pointer;
    transition: .2s ease;
}

.forgot-password-close:hover {
    background: var(--danger-bg);
    border-color: #f1c8c3;
    color: var(--danger);
}

.forgot-password-close i {
    font-size: 13px;
}

.forgot-password-line {
    width: 35px;
    height: 3px;
    margin-top: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.forgot-password-description {
    margin-top: 13px;
    margin-bottom: 20px;
    color: #7b878d;
    font-size: 10px;
    line-height: 1.6;
}

.modal-input-group {
    height: 39px;
}

.forgot-password-message {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    margin-bottom: 14px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.4;
}

.forgot-password-message.show {
    display: flex;
}

.success-message {
    color: var(--success);
    background: #edf8f2;
    border: 1px solid #cce8d8;
}

.success-message i {
    color: var(--success);
}

.forgot-password-actions {
    display: flex;
    gap: 9px;
    margin-top: 21px;
}

.forgot-cancel-button {
    width: 35%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #ffffff;
    color: #68777d;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.forgot-cancel-button:hover {
    background: #f5f8f8;
    border-color: #c3d4d5;
    color: var(--primary);
}

.forgot-cancel-button i {
    margin-right: 5px;
}

.forgot-change-button {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(
            135deg,
            var(--primary-dark),
            var(--accent-dark)
    );
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
    cursor: pointer;
    transition: .2s ease;
}

.forgot-change-button:hover {
    background: linear-gradient(
            135deg,
            var(--accent-dark),
            var(--accent)
    );
    box-shadow: 0 7px 18px rgba(15, 157, 138, .18);
    transform: translateY(-1px);
}

.forgot-change-button:active {
    transform: translateY(0);
}

.forgot-change-button:disabled {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
}

.forgot-change-button i {
    font-size: 10px;
}

.forgot-password-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid #edf0f1;
    color: #839095;
    font-size: 8px;
    font-weight: 500;
}

.forgot-password-security i {
    color: var(--success);
    font-size: 9px;
}

@media (max-width: 700px) {

    .login-box {
        width: 430px;
        grid-template-columns: 1fr;
    }

    .login-info {
        min-height: 245px;
    }

    .info-notice {
        position: static;
        margin-top: 20px;
    }

    .login-form-area {
        padding: 28px 30px 25px;
    }

    .main-content {
        padding: 25px 15px;
    }

    .forgot-password-dialog {
        width: 430px;
    }

}

@media (max-width: 480px) {

    .portal-header {
        height: 62px;
    }

    .header-inner {
        max-width: calc(100% - 25px);
    }

    .brand-mark {
        width: 37px;
        height: 37px;
    }

    .brand-info h1 {
        font-size: 16px;
    }

    .brand-info p {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .help-info {
        display: none;
    }

    .strip-inner {
        max-width: calc(100% - 25px);
    }

    .main-content {
        padding: 18px 10px;
    }

    .login-box {
        width: 100%;
    }

    .login-info {
        padding: 25px 22px;
    }

    .login-form-area {
        padding: 25px 20px 22px;
    }

    .portal-footer {
        height: auto;
        min-height: 42px;
        padding: 8px 12px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .otp-success-box {
        align-items: flex-start;
    }

    .forgot-password-modal {
        padding: 12px;
    }

    .forgot-password-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 22px 20px 20px;
    }

    .forgot-password-title h2 {
        font-size: 19px;
    }

    .forgot-password-description {
        font-size: 9px;
    }

    .forgot-password-actions {
        gap: 7px;
    }

    .forgot-cancel-button {
        width: 34%;
    }

    .forgot-change-button {
        font-size: 8px;
        letter-spacing: .4px;
    }

}