/* =======================================================
   СТИЛИ ДЛЯ ФОРМЫ ВХОДА И РЕГИСТРАЦИИ (МОДУЛЬ AUTH)
   ======================================================= */

.sax-auth-wrap {
    max-width: 450px;
    margin: 40px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sax-auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
}

.sax-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #888;
    font-weight: bold;
    transition: 0.3s;
}

.sax-auth-tab.active {
    color: #f5a623;
    border-bottom: 2px solid #f5a623;
    margin-bottom: -2px;
}

.sax-auth-form {
    display: none;
}

.sax-auth-form.active {
    display: block;
}

.sax-field {
    margin-bottom: 15px;
}

.sax-field label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
}

.sax-field input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
}

.sax-field input:focus {
    border-color: #f5a623;
    outline: none;
}

/* СТИЛИ ДЛЯ МАТЕМАТИЧЕСКОЙ КАПЧИ */
.sax-math-captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sax-math-captcha label {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #f5a623;
    white-space: nowrap;
}

.sax-math-captcha input {
    width: 90px !important; /* Узкое поле для ответа */
    text-align: center;
    padding: 10px;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
}

.sax-math-captcha input:focus {
    border-color: #f5a623;
    outline: none;
}

/* КНОПКА ОТПРАВКИ */
.sax-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #ffbb3d 0%, #f5a623 100%);
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border-bottom: 3px solid #b87210;
    transition: 0.2s;
    font-family: 'Raleway', sans-serif;
}

.sax-btn-submit:hover {
    background: linear-gradient(180deg, #f5a623 0%, #d4891a 100%);
    transform: translateY(1px);
    border-bottom-width: 1px;
}

/* СООБЩЕНИЯ ОБ ОШИБКАХ И УВЕДОМЛЕНИЯ */
.sax-auth-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.sax-auth-message {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    font-size: 16px;
    margin: 40px auto;
    max-width: 450px;
}

.sax-auth-message a {
    color: #f5a623;
    text-decoration: none;
}

.sax-auth-message a:hover {
    text-decoration: underline;
}

/* Скрытое поле от ботов */
.sax-hp-field {
    display: none !important;
}

/* =======================================================
   УВЕДОМЛЕНИЯ (подтверждение Email, повторная отправка)
   ======================================================= */

.sax-auth-notice {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    border-left: 4px solid;
}

.sax-auth-notice--success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    color: #a5e8a8;
}

.sax-auth-notice--info {
    background: rgba(245, 166, 35, 0.1);
    border-color: #f5a623;
    color: #ffd88a;
}

.sax-auth-notice--error {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    color: #ff8080;
}

.sax-auth-notice small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

/* БЛОК ПОВТОРНОЙ ОТПРАВКИ ПИСЬМА */
.sax-auth-resend {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.sax-auth-resend h3 {
    margin: 0 0 15px 0;
    color: #f5a623;
    font-size: 16px;
    font-weight: bold;
}

/* ВТОРИЧНАЯ КНОПКА (контурная, менее акцентная) */
.sax-btn-secondary {
    background: transparent;
    color: #f5a623;
    border: 1px solid #f5a623;
    border-bottom: 3px solid #b87210;
}

.sax-btn-secondary:hover {
    background: rgba(245, 166, 35, 0.1);
    color: #ffbb3d;
    transform: translateY(1px);
    border-bottom-width: 1px;
}

/* =======================================================
   СТИЛИ ДЛЯ СИСТЕМНЫХ СТРАНИЦ WORDPRESS (Вход, Сброс пароля)
   ======================================================= */
body.login {
    background: #151515 !important;
    font-family: 'Raleway', sans-serif !important;
    height: 100vh;
}

#login {
    width: 320px !important;
    margin: auto !important;
    padding: 8% 0 0 !important;
}

/* Заменяем стандартный логотип WP на наш текст */
#login h1 a {
    background-image: none !important;
    text-indent: -9999px !important;
    width: 100% !important;
    height: 50px !important;
    display: block;
    position: relative;
}

#login h1 a::before {
    content: "Sax Improviz" !important;
    text-indent: 0 !important;
    display: block !important;
    position: absolute !important;
    top: 0; left: 0; right: 0;
    color: #f5a623 !important;
    font-size: 32px !important;
    font-weight: bold !important;
    font-family: 'Raleway', sans-serif !important;
    text-align: center;
}

/* Скрываем стандартный текст "Сайт работает на WordPress" */
#login h1 a span { display: none !important; }

/* Прячем переключатель языков (он тут не нужен) */
.language-switcher { display: none !important; }

/* Карточка формы */
#login form {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    padding: 26px 24px 34px !important;
    margin-top: 20px !important;
}

/* Текст и блоки сообщений */
#login p, #login label {
    color: #ccc !important;
    font-size: 14px !important;
}

#login .message, #login .success {
    background: #1a1a1a !important;
    border-left: 4px solid #f5a623 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border-radius: 4px;
    color: #ccc !important;
}

/* Поля ввода */
#login input[type="text"],
#login input[type="password"] {
    background: #111 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 10px !important;
    font-size: 16px !important;
    font-family: 'Raleway', sans-serif !important;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus {
    border-color: #f5a623 !important;
    box-shadow: 0 0 0 1px #f5a623 !important;
    outline: none !important;
}

/* Кнопки */
#login .button-primary,
#login .button-secondary,
#login .wp-generate-pw {
    background: linear-gradient(180deg, #ffbb3d 0%, #f5a623 100%) !important;
    color: #111 !important;
    border: none !important;
    border-bottom: 3px solid #b87210 !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    box-shadow: none !important;
    padding: 8px 20px !important;
    height: auto !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    font-family: 'Raleway', sans-serif !important;
}

#login .button-primary:hover,
#login .button-secondary:hover,
#login .wp-generate-pw:hover {
    background: linear-gradient(180deg, #f5a623 0%, #d4891a 100%) !important;
    transform: translateY(1px) !important;
    border-bottom-width: 1px !important;
}

/* Ссылки под формой */
#nav a, #backtoblog a {
    color: #888 !important;
    text-decoration: none !important;
}

#nav a:hover, #backtoblog a:hover {
    color: #f5a623 !important;
}