/* Окно авторизации/регистрации покупателя (модалка создаётся в userAuth.js) */

.ua-overlay {
    position: fixed;
    top: 0;
    right: 0;  
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.ua-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    color: #333;
}

.ua-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 28px;
    line-height: 30px;
    cursor: pointer;
}

.ua-close:hover {
    color: #333;
}

.ua-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #009ada;
    text-align: center;
}

.ua-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.ua-tab {
    flex: 1 1 50%;
    padding: 12px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #777;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.ua-tab_active {
    border-bottom-color: #009ada;
    color: #009ada;
    font-weight: 700;
}

.ua-field {
    display: block;
    margin-bottom: 14px;
}

.ua-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.ua-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}

.ua-field input:focus {
    border-color: #009ada;
    box-shadow: 0 0 0 2px rgba(0, 154, 218, 0.15);
}

.ua-forgot-row {
    margin: -6px 0 14px;
    text-align: right;
}

.ua-forgot,
.ua-back {
    color: #009ada;
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
}

.ua-forgot:hover,
.ua-back:hover {
    text-decoration: underline;
}

.ua-recover-text {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 20px;
}

.ua-back {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.ua-submit {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #009ada;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ua-submit:hover {
    background: #0087c0;
}

.ua-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.ua-resend {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border: 1px solid #009ada;
    border-radius: 8px;
    background: #fff;
    color: #009ada;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.ua-resend:hover {
    background: #eef8fd;
}

.ua-resend:disabled {
    opacity: 0.6;
    cursor: default;
}

.ua-message {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 18px;
}

.ua-message_error,
.ua-message_success {
    display: block;
}

.ua-message_error {
    background: #fdecea;
    color: #c62828;
}

.ua-message_success {
    background: #e8f6ec;
    color: #0a8f3c;
}

.ua-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 17px;
    color: #888;
}

@media (max-width: 480px) {
    .ua-modal {
        padding: 24px 18px 20px;
    }

    .ua-title {
        font-size: 20px;
    }
}
