/**
 * Authentication Forms Styles
 * 
 * Базовые стили для кастомных форм логина и регистрации
 * 
 * @package HelloElementorChild
 * @since 1.0.0
 */

/* ========================================
   ОБЩИЕ СТИЛИ ДЛЯ ФОРМ
   ======================================== */

.custom-login-form,
.custom-register-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-login-form .form-title,
.custom-register-form .form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.custom-login-form .woocommerce-form-row,
.custom-register-form .woocommerce-form-row {
    margin-bottom: 20px;
}

.custom-login-form label,
.custom-register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="email"],
.custom-login-form input[type="password"],
.custom-register-form input[type="text"],
.custom-register-form input[type="email"],
.custom-register-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.custom-login-form input[type="text"]:focus,
.custom-login-form input[type="email"]:focus,
.custom-login-form input[type="password"]:focus,
.custom-register-form input[type="text"]:focus,
.custom-register-form input[type="email"]:focus,
.custom-register-form input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.custom-login-form .required,
.custom-register-form .required {
    color: #e74c3c;
}

/* ========================================
   КНОПКИ
   ======================================== */

.custom-login-form .woocommerce-button,
.custom-register-form .woocommerce-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-login-form .woocommerce-button:hover,
.custom-register-form .woocommerce-button:hover {
    background-color: #005a87;
}

/* ========================================
   ЧЕКБОКС "ЗАПОМНИТЬ МЕНЯ"
   ======================================== */

.custom-login-form .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-login-form .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ========================================
   ССЫЛКИ
   ======================================== */

.custom-login-form .lost_password,
.custom-login-form .register-link,
.custom-register-form .login-link {
    text-align: center;
    margin-top: 15px;
}

.custom-login-form .lost_password a,
.custom-login-form .register-link a,
.custom-register-form .login-link a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.custom-login-form .lost_password a:hover,
.custom-login-form .register-link a:hover,
.custom-register-form .login-link a:hover {
    text-decoration: underline;
}

/* ========================================
   УВЕДОМЛЕНИЯ WOOCOMMERCE
   ======================================== */

.custom-login-form .woocommerce-message,
.custom-login-form .woocommerce-error,
.custom-login-form .woocommerce-info,
.custom-register-form .woocommerce-message,
.custom-register-form .woocommerce-error,
.custom-register-form .woocommerce-info {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
}

.custom-login-form .woocommerce-message,
.custom-register-form .woocommerce-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.custom-login-form .woocommerce-error,
.custom-register-form .woocommerce-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.custom-login-form .woocommerce-info,
.custom-register-form .woocommerce-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 480px) {
    .custom-login-form,
    .custom-register-form {
        margin: 0 15px;
        padding: 15px;
    }
    
    .custom-login-form input[type="text"],
    .custom-login-form input[type="email"],
    .custom-login-form input[type="password"],
    .custom-register-form input[type="text"],
    .custom-register-form input[type="email"],
    .custom-register-form input[type="password"] {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}