
/* ==================================================
   BARBERSHOP — АВТОРИЗАЦИЯ WOOCOMMERCE
================================================== */

/* Общая область страницы аккаунта */
body.woocommerce-account .woocommerce {
    color: #f5f5f5;
}

/* Заголовок «Мой аккаунт» */
body.woocommerce-account .entry-title {
    margin-bottom: 30px;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Контейнер формы входа и регистрации */
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.lost_reset_password {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 40px;
    padding: 36px;
    background: #fff;
    color: #252525;
    border: 1px solid rgba(224, 25, 25, .15);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .2);
}

/* Заголовок внутри формы */
body.woocommerce-account .woocommerce h2 {
    text-align: center;
    margin: 0 0 24px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

/* Названия полей */
body.woocommerce-account .woocommerce form .form-row label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ddd;
}

/* Звёздочка обязательного поля */
body.woocommerce-account .woocommerce form .required {
    color: #d32f2f;
}

/* Поля ввода */
body.woocommerce-account .woocommerce form .input-text {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: #fafafa;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Активное поле */
body.woocommerce-account .woocommerce form .input-text:focus {
    background: #fff;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, .12);
}

/* Отступы между полями */
body.woocommerce-account .woocommerce form .form-row {
    margin-bottom: 20px;
    padding: 0;
}

/* Кнопка входа, регистрации и сброса пароля */
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input.button {
   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    background: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease,
                transform .2s ease;
}

/* Наведение на кнопку */
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input.button:hover {
    background: #ad2020;
    border-color: #ad2020;
    color: #fff;
    transform: translateY(-1px);
}

/* Чекбокс «Запомнить меня» */
body.woocommerce-account .woocommerce form .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

body.woocommerce-account .woocommerce form input[type="checkbox"] {
    accent-color: #d32f2f;
}

/* Ссылка восстановления пароля */
body.woocommerce-account .woocommerce-LostPassword a,
body.woocommerce-account .woocommerce a {
    color: #c62828;
    text-decoration: none;
    transition: color .2s ease;
}

body.woocommerce-account .woocommerce-LostPassword a:hover,
body.woocommerce-account .woocommerce a:hover {
    color: #8f1717;
    text-decoration: underline;
}

/* Сообщения WooCommerce */
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
    margin-bottom: 24px;
    padding: 16px 20px 16px 48px;
    border-radius: 10px;
    line-height: 1.6;
}

/* Ошибки */
body.woocommerce-account .woocommerce-error {
    border-top-color: #d32f2f;
}

/* Информация и успешные сообщения */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
    border-top-color: #d32f2f;
}

/* Убираем лишнее выделение при клавиатурной навигации */
body.woocommerce-account .woocommerce a:focus-visible,
body.woocommerce-account .woocommerce button:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 3px;
}

/* Адаптивность */
@media (max-width: 600px) {
    body.woocommerce-account .woocommerce form.login,
    body.woocommerce-account .woocommerce form.register,
    body.woocommerce-account .woocommerce form.lost_reset_password {
        padding: 24px 20px;
        border-radius: 12px;
    }

    body.woocommerce-account .woocommerce form .form-row {
        margin-bottom: 16px;
    }

    body.woocommerce-account .woocommerce button.button,
    body.woocommerce-account .woocommerce input.button {
        width: 100%;
    }
}

/* Учитываем настройки уменьшения анимации */
@media (prefers-reduced-motion: reduce) {
    body.woocommerce-account .woocommerce form .input-text,
    body.woocommerce-account .woocommerce button.button,
    body.woocommerce-account .woocommerce input.button {
        transition: none;
    }
}
.form-row {
        display: flex;
    justify-content: space-between;
}

/* ==========================================
   ПОЛЕ ПАРОЛЯ И КНОПКА ПОКАЗА ПАРОЛЯ
========================================== */

/* Контейнер поля пароля */
.woocommerce form .password-input {
    position: relative;
    display: block;
    width: 100%;
}

/* Само поле */
.woocommerce form .password-input input[type="password"],
.woocommerce form .password-input input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding-right: 52px !important;
}

/* Кнопка-глаз */
.woocommerce form .password-input .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    left: auto !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 8px;

    color: #777;
    cursor: pointer;

    transition:
        color .2s ease,
        background-color .2s ease,
        opacity .2s ease;

    z-index: 2;
}

.woocommerce-form-row {
    display: block;
}



/* Рисуем глаз средствами CSS */
.woocommerce form .password-input .show-password-input::after {
    content: "" !important;
    display: block !important;

    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* SVG внутри кнопки */
.woocommerce form .password-input .show-password-input svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    pointer-events: none;
}

/* Наведение */
.woocommerce form .password-input .show-password-input:hover:not(:disabled) {
    color: #d32f2f;
    background-color: rgba(211, 47, 47, .08) !important;
}

/* Неактивная кнопка */
.woocommerce form .password-input .show-password-input:disabled {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Фокус клавиатурой */
.woocommerce form .password-input .show-password-input:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 2px;
}

/* Учитываем уменьшение анимации */
@media (prefers-reduced-motion: reduce) {
    .woocommerce form .password-input .show-password-input {
        transition: none;
    }
}









/* ==========================================
   ПЕРЕКЛЮЧАТЕЛЬ ВХОДА И РЕГИСТРАЦИИ
========================================== */

.woocommerce .account-tabs {
    display: flex;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 28px;
    padding: 5px;
    gap: 5px;

    background: #f1f1f1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.woocommerce .account-tabs__button {
    flex: 1;
    min-height: 44px;
    padding: 10px 16px;

    background: transparent;
    color: #555;
    border: 0;
    border-radius: 8px;

    font: inherit;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.woocommerce .account-tabs__button:hover {
    color: #d32f2f;
}

.woocommerce .account-tabs__button.is-active {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 3px 10px rgba(211, 47, 47, .2);
}

.woocommerce .account-tabs__button:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 3px;
}


/* ==========================================
   ОТОБРАЖЕНИЕ ОДНОЙ ФОРМЫ
========================================== */

/* По умолчанию вход и регистрация не скрываются,
   пока JavaScript не включил переключатель. */

.woocommerce #customer_login.auth-tabs-enabled {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.woocommerce #customer_login.auth-tabs-enabled .u-column1,
.woocommerce #customer_login.auth-tabs-enabled .u-column2 {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
}

.woocommerce #customer_login.auth-tabs-enabled .u-column1,
.woocommerce #customer_login.auth-tabs-enabled .u-column2 {
    box-sizing: border-box;
}

/* Режим входа */
.woocommerce #customer_login.auth-tabs-enabled
.u-column2 {
    display: none;
}

/* Режим регистрации */
.woocommerce #customer_login.auth-tabs-enabled.is-register-mode
.u-column1 {
    display: none;
}

.woocommerce #customer_login.auth-tabs-enabled.is-register-mode
.u-column2 {
    display: block;
}


/* Заголовки форм */
.woocommerce #customer_login.auth-tabs-enabled
.u-column1 > h2,
.woocommerce #customer_login.auth-tabs-enabled
.u-column2 > h2 {
    margin: 0 0 24px;
    text-align: center;
}


/* Учитываем мобильные экраны */
@media (max-width: 500px) {
    .woocommerce .account-tabs {
        margin-bottom: 22px;
    }

    .woocommerce .account-tabs__button {
        min-height: 42px;
        padding: 9px 10px;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce .account-tabs__button {
        transition: none;
    }
}











/* ==========================================
   СБРОС ПАРОЛЯ — ТЕКСТЫ И ИНДИКАТОР
========================================== */

/* Текст над полями: «Введите новый пароль ниже» */
body.woocommerce-account .woocommerce form.lost_reset_password > p:first-child {
    color: #292929;
    text-align: center;
   
    border-bottom: 1px solid #e74c3c;

}

/* Подсказка о требованиях к паролю */
body.woocommerce-account .woocommerce-password-hint {
    display: block;
    margin-top: 10px;
    color: #c62828;
    font-size: 13px;
    line-height: 1.6;
}

/* Индикатор надёжности пароля — базовые стили */
body.woocommerce-account .woocommerce-password-strength {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

/* Слабый пароль */
body.woocommerce-account .woocommerce-password-strength.bad {
    color: #c62828;

}

/* Средний пароль */
body.woocommerce-account .woocommerce-password-strength.short,
body.woocommerce-account .woocommerce-password-strength:empty {
    color: #c62828;
   
}

/* Приемлемый пароль */
body.woocommerce-account .woocommerce-password-strength.good {
    color: #9a6700;
  

}

/* Надёжный пароль */
body.woocommerce-account .woocommerce-password-strength.strong {
    color: #218838;
  
}

/* Отступы формы сброса пароля */
body.woocommerce-account form.woocommerce-ResetPassword > p:first-child {
    margin-bottom: 24px;
    line-height: 1.6;
}







/* Ошибка несовпадения паролей */

body.woocommerce-account .password-match-error {
    margin-top: 10px;
    padding: 10px 12px;
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

body.woocommerce-account .password-match-error[hidden] {
    display: none;
}

body.woocommerce-account .woocommerce-ResetPassword input[aria-invalid="true"] {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}




body.woocommerce-account .woocommerce-password-custom-hint {
    margin-top: 8px;
    color: #c62828;
    font-size: 13px;
    line-height: 1.5;
}

body.woocommerce-account .woocommerce-password-custom-hint[data-strength="good"] {
    color: #a66b00;
}

body.woocommerce-account .woocommerce-password-custom-hint[data-strength="strong"] {
    color: #218838;
}

body.woocommerce-account .woocommerce-password-custom-hint[hidden] {
    display: none;
}









/* ==========================================
   BARBERSHOP — ЧЁРНЫЙ ТЕКСТ ВО ВХОДЕ И РЕГИСТРАЦИИ
========================================== */

/* Подписи полей: логин, пароль, Email */
body.woocommerce-account .woocommerce form.woocommerce-form-login label,
body.woocommerce-account .woocommerce form.woocommerce-form-register label {
    color: #252525 !important;
}

/* Звёздочка обязательного поля */
body.woocommerce-account .woocommerce form.woocommerce-form-login .required,
body.woocommerce-account .woocommerce form.woocommerce-form-register .required {
    color: #d32f2f !important;
}

/* Текст «Обязательно» для скринридеров */
body.woocommerce-account .woocommerce form .screen-reader-text {
    color: #252525;
}

/* Запомнить меня */
body.woocommerce-account .woocommerce form.login
.woocommerce-form-login__rememberme,
body.woocommerce-account .woocommerce form.login
.woocommerce-form-login__rememberme span {
    color: #252525 !important;
}

/* Текст о ссылке для установки пароля */
body.woocommerce-account .woocommerce form.woocommerce-form-register > p:not(.form-row),
body.woocommerce-account .woocommerce form.woocommerce-form-register > p:not(.form-row) * {
    color: #252525 !important;
}

/* Текст о персональных данных */
body.woocommerce-account .woocommerce form.woocommerce-form-register
.woocommerce-privacy-policy-text,
body.woocommerce-account .woocommerce form.woocommerce-form-register
.woocommerce-privacy-policy-text p {
    color: #252525 !important;

}

/* Ссылка на политику конфиденциальности остаётся красной */
body.woocommerce-account .woocommerce form.woocommerce-form-register
.woocommerce-privacy-policy-text a {
    color: #c62828 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce form.woocommerce-form-register
.woocommerce-privacy-policy-text a:hover {
    color: #8f1717 !important;
}

/* Текст восстановления пароля */
body.woocommerce-account .woocommerce form.lost_reset_password > p,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword > p {
    color: #252525;
}

/* Поля остаются читаемыми на белом фоне */
body.woocommerce-account .woocommerce form.woocommerce-form-login .input-text,
body.woocommerce-account .woocommerce form.woocommerce-form-register .input-text {
    color: #252525;
    background-color: #fafafa;
}

/* Активное поле */
body.woocommerce-account .woocommerce form.woocommerce-form-login .input-text:focus,
body.woocommerce-account .woocommerce form.woocommerce-form-register .input-text:focus {
    color: #252525 !important;
    -webkit-text-fill-color: #252525 !important;
    background-color: #fff !important;
    border-color: #d32f2f;
}

/* Placeholder */
body.woocommerce-account .woocommerce form.woocommerce-form-login .input-text::placeholder,
body.woocommerce-account .woocommerce form.woocommerce-form-register .input-text::placeholder {
    color: #777;
    opacity: 1;
}


body.woocommerce-account
.woocommerce button.woocommerce-form-register__submit {
    width: 100%;
  
}




/* ==========================================
   ВОССТАНОВЛЕНИЕ ПАРОЛЯ
========================================== */

/* Чёрный цвет подписи */
body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
label[for="user_login"] {
    color: #252525 !important;
}

/* Красная звёздочка обязательного поля */
body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
label[for="user_login"] .required {
    color: #d32f2f !important;
}

/* Поле имени пользователя или Email */
body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
#user_login {
    width: 100%;
    box-sizing: border-box;
    color: #252525 !important;
}

/* Кнопка сброса пароля — на всю ширину */
body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
button.woocommerce-Button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Убираем лишний отступ у строки с кнопкой */
body.woocommerce-account
.woocommerce form.woocommerce-ResetPassword
p.form-row:last-of-type {
    width: 100%;
}

