/* === ƏSAS SIFIRLAMA === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden; /* Hissəciklər səbəbindən scroll yaranmasın */
    width: 100%;
    height: 100%;
}

/* === ARXA PLAN VƏ BƏDƏN === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Şəklin üzərinə tündləşdirici gradient əlavə etdik */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../img/background.webp') no-repeat center center fixed;
    background-size: 115% 115%; /* Şəkli bir az böyüt */
    animation: bgAlive 25s ease-in-out infinite alternate; /* Yavaş hərəkət effekti */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === ZAMAN TOZU (HİSSƏCİKLƏR) === */
#time-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Klikləri maneə törətməsin */
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 8px #00d4ff, 0 0 15px #00d4ff;
    opacity: 0;
    animation: floatUp linear infinite;
}

/* === GİRİŞ QUTUSU === */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10; /* Hissəciklərin üstündə qalsın */
    animation: fadeIn 1s ease-out;
}

.auth-box {
    background: rgba(10, 10, 20, 0.85);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Qutunun içindəki parıltı */
.auth-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

/* === TİPOQRAFİYA === */
.game-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    animation: glow 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    color: #a0a0b0;
    margin-bottom: 35px;
    font-size: 0.95em;
    position: relative;
    z-index: 2;
}

/* === FORM ELEMENTLƏRİ === */
.auth-form {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.input-group input::placeholder {
    color: #666;
}

.error-message {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid #ff4444;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    animation: shake 0.4s;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border: 1px solid #00d4ff;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(0, 153, 204, 0.4));
}

.btn-primary:active {
    transform: translateY(0);
}

/* === FOOTER === */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.auth-footer p {
    color: #888;
    font-size: 14px;
}

.link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.link:hover {
    color: #fff;
    text-shadow: 0 0 10px #00d4ff;
}

/* === ANİMASİYALAR (KEYFRAMES) === */
@keyframes bgAlive {
    0% { 
        background-position: 50% 50%; 
        transform: scale(1); 
    }
    100% { 
        background-position: 55% 45%; 
        transform: scale(1.08); 
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(40px) scale(1.2);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 15px rgba(0, 212, 255, 0.6); }
    50% { text-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 45px rgba(0, 212, 255, 0.5); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* === MOBİL UYĞUNLAŞMA === */
@media (max-width: 600px) {
    .game-title { font-size: 2em; }
    .auth-box { padding: 30px 20px; }
    .auth-container { padding: 10px; }
}