/* ==========================================
   L2Site - Login Page Styles
   Style: Essence Downgrade (Dark Neon + Gold)
   ========================================== */

:root {
    --bg-color: #0d0f12;
    --panel-bg: #14181f;
    --accent-gold: #cca553;
    --accent-purple: #7b2cbf;
    --text-main: #e2e8f0;
    --text-muted: #718096;
    --online-green: #00f5d4;
    --offline-red: #ff0054;
    --border-rgba: rgba(204, 165, 83, 0.15);
}

/* ===== Фон страницы ===== */
body {
    background: linear-gradient(rgba(13, 15, 18, 0.85), rgba(13, 15, 18, 0.85)),
                url('../images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    color: #e2e8f0;
    box-shadow: inset 0 0 120px rgba(13, 15, 18, 0.95),
                inset 250px 0 300px rgba(123, 44, 191, 0.15),
                inset -250px 0 300px rgba(204, 165, 83, 0.12);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Панель входа ===== */
.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--panel-bg);
    background-image: linear-gradient(135deg, rgba(20, 24, 31, 0.95) 0%, rgba(13, 15, 18, 0.98) 100%);
    border: 1px solid var(--border-rgba);
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(123, 44, 191, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin: 20px;
}

/* Декоративная линия сверху */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-purple) 20%,
        var(--accent-gold) 50%,
        var(--accent-purple) 80%,
        transparent 100%);
    border-radius: 12px 12px 0 0;
}

/* ===== Заголовок ===== */
.login-box h2 {
    text-align: center;
    color: var(--accent-gold);
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(204, 165, 83, 0.3);
    font-family: 'Cinzel', serif;
}

/* ===== Блоки сообщений (ошибки/успех) ===== */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background: rgba(255, 0, 84, 0.1);
    border: 1px solid rgba(255, 0, 84, 0.3);
    color: #ff6688;
}

/* ===== Группы полей ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ===== Поля ввода ===== */
.form-input {
    width: 100%;
    padding: 12px 15px;
    background: #0d0f12;
    border: 1px solid rgba(204, 165, 83, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input:hover {
    border-color: rgba(204, 165, 83, 0.4);
}

.form-input:focus {
    border-color: var(--accent-purple);
    box-shadow:
        0 0 0 3px rgba(123, 44, 191, 0.15),
        0 0 20px rgba(123, 44, 191, 0.2);
    background: rgba(13, 15, 18, 0.9);
}

/* ===== Кнопка входа ===== */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #9d4edd 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(123, 44, 191, 0.5),
        0 0 30px rgba(123, 44, 191, 0.2);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(123, 44, 191, 0.3);
}

/* ===== Футер формы ===== */
.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-rgba);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.login-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.login-footer a:hover {
    color: #e0b85c;
    text-shadow: 0 0 10px rgba(204, 165, 83, 0.4);
}

.login-footer a:hover::after {
    width: 100%;
}

/* ===== Адаптивность ===== */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 25px;
        margin: 10px;
    }

    .login-box h2 {
        font-size: 20px;
    }

    .form-input {
        padding: 11px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 13px;
    }
}
