/* AUTH - WINDOX STYLE */

body {
    /* Fallback градиент пока изображение загружается */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    /* Фоновое изображение поверх градиента */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../1.jpg');
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    /* Фоновое изображение как в games-container */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../../1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Контейнер для промо в шапке */
.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Премиальный стиль для промо бонуса в шапке */
.header .promo {
    text-align: center;
    font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fef3c7;
    text-shadow:
        0 0 15px rgba(250, 204, 21, 0.8),
        0 0 30px rgba(250, 204, 21, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.7));
    margin: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
    position: relative;
    overflow: hidden;
    animation: promoGlow 2s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    line-height: 1.4;
}

.promo::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 120deg, rgba(250, 204, 21, 0.15), transparent 35%, transparent 65%, rgba(96, 165, 250, 0.2));
    opacity: 0.6;
    filter: blur(30px);
    z-index: -1;
    animation: promoRotate 8s linear infinite;
}

@keyframes promoGlow {
    0% {
        text-shadow:
            0 0 20px rgba(250, 204, 21, 0.9),
            0 0 40px rgba(250, 204, 21, 0.7),
            0 0 60px rgba(250, 204, 21, 0.5);
    }
    100% {
        text-shadow:
            0 0 30px rgba(250, 204, 21, 1),
            0 0 50px rgba(250, 204, 21, 0.8),
            0 0 70px rgba(250, 204, 21, 0.6),
            0 0 90px rgba(252, 211, 77, 0.4);
    }
}

@keyframes promoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header-logo {
        font-size: 36px;
    }
    
    .header-logo-icon {
        font-size: 42px;
    }
    
    .header-logo-text {
        font-size: 36px;
    }
    
    .promo {
        font-size: 16px;
        padding: 15px;
        letter-spacing: 0.1em;
    }
}

.auth-form {
    background: linear-gradient(135deg, #1e2230 0%, #252936 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #6366f1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-form h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Rubik', sans-serif;
}

.auth-form p {
    text-align: center;
    color: #8b92b3;
    margin-bottom: 20px;
    font-family: 'Rubik', sans-serif;
}

.auth-form input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #2a2f40;
    border: 2px solid #4a5060;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-form input::placeholder {
    color: #8b92b3;
}

.bonus-hint {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 12px;
    text-align: center !important;
    color: #10b981 !important;
    font-weight: 600;
    margin-bottom: 20px !important;
}

.bonus-hint strong {
    color: #ffd700;
}

.auth-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
    font-family: 'Rubik', sans-serif;
    margin-bottom: 15px;
}

.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.7);
}

.auth-button:active {
    transform: translateY(0);
}

.switch-form {
    text-align: center;
    color: #8b92b3;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
}

.link {
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.link:hover {
    color: #8b5cf6;
}

.error-message {
    color: #ef4444;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.hidden {
    display: none !important;
}

/* WELCOME MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1e2230 0%, #252936 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #10b981;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    color: #10b981;
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-family: 'Rubik', sans-serif;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.welcome-info {
    text-align: center;
    margin-bottom: 30px;
}

.success-text {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Rubik', sans-serif;
}

.bonus-text {
    color: #ffd700;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.bonus-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid #6366f1;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.cta-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
    font-family: 'Rubik', sans-serif;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.7);
}

.disclaimer {
    text-align: center;
    color: #8b92b3;
    font-size: 12px;
    margin-top: 20px;
    font-family: 'Rubik', sans-serif;
}

/* Адаптив */
@media (max-width: 768px) {
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-form h2 {
        font-size: 22px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .bonus-features {
        grid-template-columns: 1fr;
    }
}

