/* style.css — Стили для страницы входа в клан PUBG */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d0d0d;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* Фоновое изображение с затемнением */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) saturate(0.8);
    z-index: -1;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

/* Контейнер входа */
.login-container {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 204, 52, 0.3);
    border-radius: 16px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 204, 52, 0.05);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Логотип */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 204, 52, 0.4));
}

/* Заголовок */
h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffcc34;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 204, 52, 0.3);
}

/* Форма */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #ffcc34;
    box-shadow: 0 0 12px rgba(255, 204, 52, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.input-group input::placeholder {
    color: #555555;
    font-style: italic;
}

/* Кнопка входа */
.btn-login {
    margin-top: 5px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffcc34 0%, #e6a800 100%);
    color: #111111;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 52, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #ffe066 0%, #ffcc34 100%);
    box-shadow: 0 6px 25px rgba(255, 204, 52, 0.5);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 204, 52, 0.3);
}

/* Информационный блок */
.info-block {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-text {
    font-size: 0.9rem;
    color: #bbbbbb;
    line-height: 1.5;
    text-align: center;
}

.info-text strong {
    color: #ffcc34;
}

.warning-text {
    font-size: 0.85rem;
    color: #ff6b6b;
    line-height: 1.5;
    text-align: center;
    background: rgba(255, 107, 107, 0.08);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.warning-text strong {
    color: #ff4444;
}

/* Блок ошибки (auth.php) */
.error-block {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0;
}

/* Кнопка "Назад" (auth.php) */
.btn-back {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    background: rgba(255, 204, 52, 0.12);
    border: 1px solid rgba(255, 204, 52, 0.4);
    color: #ffcc34;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-back:hover {
    background: rgba(255, 204, 52, 0.25);
    box-shadow: 0 0 15px rgba(255, 204, 52, 0.2);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .logo img {
        max-width: 100px;
    }

    .info-text {
        font-size: 0.82rem;
    }

    .warning-text {
        font-size: 0.78rem;
    }
}