#auth-page {
    min-height: 100vh;
    background: #ffffff;
}

#auth-page .overlay-background {
    background-image: url("/img/login_bg.490a56d2.png");
}

#auth-page .overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

#auth-page .sign-in {
    max-width: 460px;
}

#auth-page .sign-in-form {
    padding: 36px 0;
}

#auth-page .login-description {
    min-height: 48px;
    margin-bottom: 22px;
    line-height: 1.5;
}

#auth-page .login-mode-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    height: 44px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid #e1e7ea;
    border-radius: 4px;
    background: #f4f7f7;
}

#auth-page .login-mode-tab {
    overflow: hidden;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #5d6868;
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

#auth-page .login-mode-tab.is-active {
    background: #ffffff;
    color: #008f83;
    box-shadow: 0 1px 4px rgba(32, 61, 59, 0.12);
}

#auth-page .login-mode-tab:focus-visible {
    outline: 2px solid #009688;
    outline-offset: 1px;
}

#auth-page .login-panel[hidden],
#auth-page .login-alert[hidden] {
    display: none !important;
}

#auth-page #forgotPasswordLink[hidden] {
    display: none !important;
}

#auth-page .login-alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-left: 3px solid #bd3b42;
    background: #fff3f4;
    color: #8d252b;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

#auth-page .phone-input {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    height: calc(1.5em + 1.25rem + 2px);
}

#auth-page .phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebeff6;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    background: #eef3f3;
    color: #374645;
    font-size: 15px;
    font-weight: 600;
}

#auth-page .phone-input .form-control {
    min-width: 0;
    height: 100%;
    border-radius: 0 3px 3px 0;
}

#auth-page .code-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 10px;
}

#auth-page .send-code-button {
    height: calc(1.5em + 1.25rem + 2px);
    border: 1px solid #009688;
    border-radius: 3px;
    background: #ffffff;
    color: #008f83;
    font-size: 14px;
    font-weight: 700;
}

#auth-page .send-code-button:hover,
#auth-page .send-code-button:focus {
    background: #eef8f7;
    color: #00796f;
}

#auth-page .send-code-button:disabled {
    border-color: #c8d3d2;
    background: #f3f5f5;
    color: #8e9b9a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#auth-page .field-status {
    min-height: 20px;
    padding-top: 5px;
    color: #5d6868;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

#auth-page .field-status.is-error {
    color: #a52229;
}

#auth-page .btn-main:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

@media (max-width: 767px) {
    #auth-page .row.vh-100 {
        min-height: 100vh;
        height: auto !important;
    }

    #auth-page .overlay-box {
        min-height: 180px;
    }

    #auth-page .logo-image {
        max-width: 180px;
    }

    #auth-page .form-box {
        padding-top: 0;
    }

    #auth-page .sign-in-form {
        padding: 32px 0 40px;
    }
}

@media (max-width: 420px) {
    #auth-page .login-mode-tab {
        padding: 0 6px;
        font-size: 13px;
    }

    #auth-page .code-input {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

    #auth-page .account-links {
        white-space: normal !important;
    }
}
