/* LOGIN MODAL */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 25, 45, .72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 34px 38px 30px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(10, 30, 55, .2);
    animation: loginFadeIn .25s ease
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.login-close {
    position: absolute;
    top: 17px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #7b8da7;
    font-size: 18px;
    cursor: pointer
}

.login-close:hover {
    color: #10243a
}

.login-modal-header {
    text-align: center;
    margin-bottom: 27px
}

.login-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    background: #eaf3ff;
    border-radius: 50%;
    color: #1769aa;
    font-size: 25px
}

.login-modal .login-title {
    margin: 0 0 10px;
    color: #10243a;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center
}

.login-modal .login-helper-text {
    display: block;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    text-align: center
}

.login-modal .login-group {
    margin-bottom: 20px
}

.login-modal .login-group label {
    display: block;
    margin-bottom: 9px;
    color: #172b4d;
    font-size: 13px;
    font-weight: 600
}

.login-input-wrap {
    position: relative
}

.login-input-wrap>i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #7b8da7;
    font-size: 16px;
    pointer-events: none
}

.login-modal .login-input-wrap input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 45px;
    margin: 0;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    outline: none;
    box-shadow: none;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
    text-transform: none !important;
    transition: border-color .2s ease, box-shadow .2s ease
}

.login-modal .login-input-wrap input::placeholder {
    color: #94a3b8;
    text-transform: none !important
}

.login-modal .login-input-wrap input:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .08)
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #7b8da7;
    cursor: pointer
}

.login-password-toggle:hover {
    color: #1769aa
}

.login-modal .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 52px;
    margin-top: 26px;
    padding: 0 20px;
    background: #1769aa;
    border: 1px solid #1769aa;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease
}

.login-modal .login-submit:hover {
    background: #10558d;
    color: #fff;
    transform: translateY(-1px)
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 12px
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5eaf2
}

.login-modal .login-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0
}

.login-modal .login-footer-text {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #8492a6
}

.login-modal .login-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    color: #172b4d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease
}

.login-modal .login-create:hover {
    background: #edf4fc;
    border-color: #b8d3ea;
    color: #1769aa
}

.login-modal .login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    color: #b42318;
    font-size: 13px
}

@media(max-width:575px) {
    .login-modal-overlay {
        padding: 12px
    }

    .login-modal {
        max-height: calc(100dvh - 24px);
        padding: 34px 22px 26px
    }

    .login-modal .login-title {
        font-size: 24px
    }

    .login-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 22px
    }
}

/* HEADER AUTH BUTTONS */
.header-auth-btn {
    min-width: 108px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1;
    color: #fff;
    background: #296299;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .25s ease
}

.header-auth-btn:hover {
    background: #1f4f7a;
    color: #fff
}

.header-auth-btn.secondary {
    background: #6c757d;
    min-width: 96px;
    padding: 0 10px;
    font-size: 12.5px
}

.header-auth-btn.secondary:hover {
    background: #5a6268
}