/*
Theme Name: Masttera(OneLogin)
Theme URI: https://example.com/onelogin
Author: DeepSeek AI
Author URI: https://example.com
Description: Минималистичная тема с входом по центру
Version: 1.0
License: GPL v2 or later
Text Domain: Masttera
*/

/* Сброс */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ===== ТЁМНЫЕ ЦВЕТА ИЗ IMPRESSIONIST ===== */
:root {
    --text-dark: #0d0805;
    --accent: #6b3a1f;
    --accent-hover: #4a2512;
    --cream: #c4a882;
    --light-bg: #a0896c;
    --glass-bg: rgba(30, 18, 10, 0.35);
    --glass-border: rgba(180, 140, 100, 0.25);
    --dark-gray: #5a5a5a;
}

/* ===== ФОН НА ВЕСЬ ЭКРАН (ТВОЯ КАРТИНКА) ===== */
body {
    font-family: 'Beth Ellen', cursive !important;
    /* ↓↓↓ ЗАМЕНИ НА URL СВОЕЙ КАРТИНКИ ↓↓↓ */
    background: url('https://masttera.com/wp-content/uploads/2026/06/impressionist-home-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    color: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

/* ВСЕ ЭЛЕМЕНТЫ — BETH ELLEN */
body {
    font-family: 'Beth Ellen', 'Bad Script', cursive !important;
    font-weight: 900 !important;
}

h1, h2, h3, h4, h5, h6,
p, a, span, div, button, input, label {
    font-family: 'Beth Ellen', 'Bad Script', cursive !important;
    font-weight: 900 !important;
}

/* Дополнительно — жирнее через text-shadow (эффект жирности) */
h1, h2, h3, h4, h5, h6,
p, a, span, div, button, input, label {
    text-shadow: 0.5px 0 0 currentColor;
}

/* ===== НАЗВАНИЕ САЙТА (ВСЕГДА ПО ЦЕНТРУ) ===== */
.site-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease;
}

/* Ссылка в названии сайта */
.site-title a {
    color: #261e12;
    text-decoration: none;
    transition: all 0.3s;
}

.site-title a:hover {
    color: #362304;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.9);
}

/* ===== ОПИСАНИЕ ДО ВХОДА ===== */
.site-description {
    font-size: 1.1rem;
    color: #474138;
    opacity: 0.9;
    margin-bottom: 35px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* ===== ПРИВЕТСТВИЕ — ТЁМНО-СЕРОЕ ===== */
.user-greeting {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2e2c29; 
    animation: fadeInUp 0.6s ease 0.2s both;
}

.user-greeting span {
    font-weight: 700;
    color: #2e2c29;
}

/* ===== "ВЫ В СИСТЕМЕ" — ТЁМНО-СЕРОЕ ===== */
.system-status {
    font-size: 1rem;
    color: #2e2c29;
    opacity: 0.85;
    margin-bottom: 35px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ВХОД / РЕГИСТРАЦИЯ ===== */
.tab-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.tab-btn {
    padding: 10px 28px !important;
    border-radius: 25px !important;
    border: 1px solid rgba(180, 140, 100, 0.4) !important;
    background: rgba(20, 10, 5, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    color: #d4b896 !important;
    font-family: 'Beth Ellen', cursive !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.tab-btn.active {
    background: rgba(107, 58, 31, 0.65) !important;
    color: #e0c8a0 !important;
    border-color: rgba(180, 140, 100, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.tab-btn:hover {
    background: rgba(107, 58, 31, 0.5) !important;
    color: #c4a882 !important;
    border-color: rgba(180, 140, 100, 0.5) !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== ФОРМА ВХОДА (ДО ВХОДА) ===== */
.login-box {
    background: rgba(20, 10, 5, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 140, 100, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #b89878;
    opacity: 0.95;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(180, 140, 100, 0.3);
    background: rgba(20, 10, 5, 0.8);
    color: #d4b896;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5a3a;
    box-shadow: 0 0 0 3px rgba(107, 58, 31, 0.4);
    background: rgba(30, 15, 8, 0.9);
}

.form-group input::placeholder {
    color: #7a6048;
    opacity: 0.7;
}

/* ===== ЧЕКБОКС "ЗАПОМНИТЬ МЕНЯ" ===== */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(20, 10, 5, 0.8) !important;
    border: 2px solid rgba(180, 140, 100, 0.5) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    transition: all 0.3s !important;
    flex-shrink: 0 !important;
}

.remember-row input[type="checkbox"]:checked {
    background-color: #8b5a3a !important;
    border-color: #a07050 !important;
}

.remember-row input[type="checkbox"]:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #d4b896 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.remember-row label {
    margin: 0;
    font-size: 0.85rem;
    color: #b89878 !important;
    opacity: 0.9;
    cursor: pointer !important;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #6b3a1f;
    color: #d4b896;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Beth Ellen', cursive !important;
}

.btn-submit:hover {
    background: #4a2512;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ===== СТАТУС ===== */
.login-status {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 22px;
}

.login-status.error { color: #6e0505; }
.login-status.success { color: #c4a882; }

/* ===== КАПЧА (ЗАТЕМНЁННАЯ) ===== */
.g-recaptcha {
    display: inline-block !important;
    filter: brightness(0.65) saturate(0.3) hue-rotate(10deg) !important;
    opacity: 0.85 !important;
    transform: scale(0.95) !important;
    transform-origin: center !important;
}

.g-recaptcha iframe {
    filter: brightness(0.8) !important;
}

.g-recaptcha > div {
    background: transparent !important;
}

/* ===== НАВИГАЦИЯ — ПРЯМОУГОЛЬНАЯ ===== */
.site-nav {
    margin-top: 0px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 700px;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4b896;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    width: 90px;
    height: 40px;
    padding: 10px 10px 15px 10px;
    border-radius: 30px;
    background: rgba(20, 10, 5, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 140, 100, 0.2);
    transition: all 0.3s;
    text-align: center;
    line-height: 1.2;
}

.nav-menu a:hover {
    background: rgba(107, 58, 31, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Кнопка Выйти */
.btn-logout {
    background: rgba(80, 25, 15, 0.6) !important;
    border-color: rgba(140, 60, 40, 0.4) !important;
}

.btn-logout:hover {
    background: rgba(120, 35, 20, 0.85) !important;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .site-title { font-size: 2.5rem; }
    .login-box { padding: 25px 20px; }
    .nav-menu { gap: 12px; max-width: 400px; }
    .nav-menu a { 
        width: 90px; 
        height: 40px; 
        font-size: 0.7rem; 
    }
}

@media (max-width: 480px) {
    .site-title { font-size: 2rem; }
    .nav-menu { gap: 8px; max-width: 300px; }
    .nav-menu a { 
        width: 70px; 
        height: 30px; 
        font-size: 0.65rem; 
    }
}