/* ============================================
   Кастомные стили для страниц входа и регистрации
   E-Notary Theme - Auth Pages
   Pixel Perfect по дизайну Figma
   ============================================ */

/* Сброс базовых стилей */
* {
    box-sizing: border-box;
}

body.auth-page-body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Основной контейнер авторизации */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAFAFA;
    padding: 20px;
}

.auth-container {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    padding: 100px 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Заголовок и описание */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin-bottom: 0;
}

.auth-header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.auth-header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.22;
    color: #262626;
    letter-spacing: -0.48px;
    margin: 0;
    padding: 0;
}

.auth-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF UI Display', 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.15;
    color: #979797;
    margin: 0;
    padding: 0;
}

/* Поля ввода */
.auth-input-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.22;
    color: #262626;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
}

.auth-input::placeholder {
    color: #979797;
    font-weight: 500;
}

.auth-input:focus {
    border-color: #375d74;
    box-shadow: 0 0 0 3px rgba(55, 93, 116, 0.08);
}

.auth-input:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Поле с иконкой (пароль) */
.auth-password-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
}

.auth-input-with-icon {
    position: relative;
    width: 100%;
}

.auth-input-with-icon input {
    padding-right: 44px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-icon:hover {
    opacity: 1;
}

.password-toggle-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Забыли пароль */
.forgot-password-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #375d74;
    text-decoration: none;
    transition: color 0.25s ease;
    margin-top: 10px;
    margin-bottom: 16px;
}

.forgot-password-link:hover {
    color: #2a4a5c;
}

/* Чекбокс согласия */
.auth-consent-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
}

.auth-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.auth-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox-custom {
    background: #375d74;
    border-color: #375d74;
}

.auth-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7.5L5.5 10L11 4' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    opacity: 1;
}

.auth-consent-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #262626;
    flex: 1;
}

.auth-consent-label a {
    color: #375d74;
    text-decoration: underline;
    text-decoration-color: #375d74;
    transition: color 0.25s ease;
}

.auth-consent-label a:hover {
    color: #2a4a5c;
    text-decoration-color: #2a4a5c;
}

/* Кнопка отправки */
.auth-submit-btn {
    background: #375d74;
    border: none;
    border-radius: 10px;
    padding: 15px 14px;
    min-width: 130px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF UI Display', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.15;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-submit-btn:hover {
    background: #2d4d5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 93, 116, 0.25);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Серый контейнер для полей ввода */
.auth-inputs-box {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    margin-bottom: 16px;
}

.auth-form {
    text-align: center;
}
/* Ссылка переключения */
.auth-switch-link {
    font-family: -apple-system, BlinkMacSystemFont, 'SF UI Display', 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.15;
    color: #979797;
    text-align: center;
    margin: 0;
    padding-top: 16px;
}

.auth-switch-link a {
    color: #375d74;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-switch-link a:hover {
    color: #2a4a5c;
}

/* Сообщения об ошибках и успехе */
.auth-error-message {
    background: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #856404;
    width: 100%;
    max-width: 100%;
}

.auth-success-message {
    background: #D4EDDA;
    border: 1px solid #28A745;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #155724;
    width: 100%;
    max-width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-container {
        padding: 80px 20px;
        max-width: 480px;
    }

    .auth-header {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 10px;
    }

    .auth-container {
        padding: 60px 24px;
        border-radius: 16px;
        gap: 14px;
    }

    .auth-header h1 {
        font-size: 22px;
        letter-spacing: -0.44px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .auth-input {
        font-size: 15px;
        padding: 11px;
    }

    .auth-input-wrapper,
    .auth-password-field,
    .auth-consent-wrapper,
    .auth-error-message,
    .auth-success-message {
        max-width: 100%;
    }

    .auth-submit-btn {
        min-width: 120px;
        padding: 14px 12px;
        font-size: 15px;
    }

    .forgot-password-link,
    .auth-consent-label,
    .auth-switch-link {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .auth-container {
        padding: 40px 20px;
        gap: 12px;
    }

    .auth-header h1 {
        font-size: 20px;
    }

    .auth-submit-btn {
        min-width: 100%;
        max-width: 200px;
    }
}

/* Скрыть стандартные WordPress элементы на кастомных страницах */
.auth-page-wrapper #wpadminbar {
    display: none !important;
}

.auth-page-body .site-header,
.auth-page-body .site-footer,
.auth-page-body #masthead,
.auth-page-body #colophon {
    display: none !important;
}

/* Убираем лишние отступы WordPress */
.auth-page-body {
    margin: 0 !important;
    padding: 0 !important;
}

