:root {
    --login-primary: #203a43;
    --login-primary-2: #2c5364;
    --login-text: #17212b;
    --login-muted: #718093;
    --login-border: #dbe4ea;
    --login-soft: #f6f9fb;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--login-text);
    background:
        radial-gradient(
            circle at top left,
            rgba(44, 83, 100, .12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #edf3f7 0%,
            #f8fafc 55%,
            #edf2f5 100%
        );
    font-family:
        Inter,
        Arial,
        sans-serif;
}

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

.login-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 234, .85);
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 26px 70px rgba(15, 32, 39, .14);
}

.login-card-accent {
    height: 6px;
    background:
        linear-gradient(
            90deg,
            #0f2027,
            #203a43,
            #2c5364
        );
}

.login-card-body {
    padding: 34px 34px 30px;
}

.logo-wrap {
    text-align: center;
    width: 92px;
    height: 82px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.logo-wrap img {
    position: absolute;
    width: 228px;
    max-width: none;
    height: 228px;
    left: -68px;
    top: -46px;
    object-fit: contain;
}

.form-heading {
    margin: 12px 0 27px;
    text-align: center;
}

.login-eyebrow {
    color: var(--login-primary-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-heading h1 {
    margin: 5px 0 5px;
    color: var(--login-text);
    font-size: 28px;
    font-weight: 850;
}

.form-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 13px;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 13px;
    border: 1px solid #dce6eb;
    border-radius: 999px;
    color: var(--login-primary);
    background: #f2f7f9;
    font-size: 11px;
    font-weight: 750;
}

.login-alert {
    display: none;
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
}

.login-alert.is-visible {
    display: block;
}

.login-alert.is-error {
    color: #a9271d;
    border-color: #f5c7c3;
    background: #fff1f0;
}

.login-alert.is-success {
    color: #157347;
    border-color: #badbcc;
    background: #eaf7ef;
}

.login-field {
    margin-bottom: 17px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: #344657;
    font-size: 12px;
    font-weight: 700;
}

.login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 45px;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    outline: 0;
    color: var(--login-text);
    background: #fbfcfd;
    font-size: 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.login-input input::placeholder {
    color: #9aa7b3;
}

.login-input input:focus {
    border-color: var(--login-primary-2);
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(44, 83, 100, .12);
}

.login-input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    color: #81909e;
}

.password-toggle {
    position: absolute;
    right: 6px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: #70808f;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--login-primary);
    background: #edf3f5;
    outline: 0;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 20px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--login-muted);
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    accent-color: var(--login-primary);
}

.login-options a {
    color: var(--login-primary-2);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #17375e,
            #203a43 55%,
            #2c5364
        );
    box-shadow:
        0 10px 22px rgba(32, 58, 67, .2);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.btn-login:hover {
    filter: brightness(1.04);
}

.btn-login:disabled {
    opacity: .72;
    cursor: wait;
}

#btnSpinner {
    display: none;
}

#btnSpinner.is-visible {
    display: inline-block;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #82909d;
    font-size: 10px;
    text-align: center;
}

.login-security-note i {
    color: #2c7a59;
}

.footer-note {
    margin-top: 18px;
    color: #8694a2;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 575.98px) {
    body {
        padding: 14px;
    }

    .login-card-body {
        padding: 28px 20px 24px;
    }

    .form-heading h1 {
        font-size: 24px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
