/* Popup окно */
.custom-auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.custom-auth-popup__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.custom-auth-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.custom-auth-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.custom-auth-popup__close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Заголовок */
.custom-auth-popup__content h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
    font-size: 22px;
}

/* Форма WooCommerce */
.custom-auth-woo-form {
    margin-bottom: 25px;
}

.custom-auth-woo-form .woocommerce-form-row {
    margin-bottom: 15px;
}

.custom-auth-woo-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.custom-auth-woo-form .input-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.custom-auth-woo-form .woocommerce-button {
    width: 100%;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.custom-auth-woo-form .woocommerce-button:hover {
    background: #555;
}

/* Разделитель */
.custom-auth-separator {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #999;
}

.custom-auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.custom-auth-separator span {
    background: white;
    padding: 0 15px;
    position: relative;
    font-size: 14px;
}

/* Кнопки соцсетей */
.custom-auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.custom-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-auth-btn.vk {
    background: #4a76a8;
}

.custom-auth-btn.yandex {
    background: #fc3f1d;
}

.custom-auth-btn.telegram {
    background: #2aabee;
}

/* Соглашение */
.custom-auth-agreement {
    text-align: center;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

.custom-auth-agreement a {
    color: #0073aa;
    text-decoration: none;
}

.custom-auth-agreement a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .custom-auth-popup__content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .custom-auth-btn {
        padding: 12px;
    }
}