/* ===========================================
   LOGIN SCREEN - MODERN DARK + BRONZE THEME
   =========================================== */

#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 166, 107, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 166, 107, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0d0d0d 0%, #121212 50%, #161616 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: loginFadeIn 0.6s ease-out;
}

#loginScreen.hidden {
    animation: loginFadeOut 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes loginFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===========================================
   LOGIN CONTAINER
   =========================================== */

.login-container {
    text-align: center;
    padding: 50px 60px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
    border-radius: 24px;
    border: 1px solid #2a2a2a;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(201, 166, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    max-width: 480px;
    min-width: 400px;
    backdrop-filter: blur(20px);
    animation: loginSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle border glow effect */
.login-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.15) 0%, transparent 50%, rgba(201, 166, 107, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-container:hover::before {
    opacity: 1;
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================================
   BANNER / LOGO
   =========================================== */

.login-banner {
    margin-bottom: 36px;
}

.login-banner img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(201, 166, 107, 0.35));
    animation: bannerGlow 4s ease-in-out infinite;
}

@keyframes bannerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(201, 166, 107, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 36px rgba(201, 166, 107, 0.5));
    }
}

/* ===========================================
   SUBTITLE TEXT
   =========================================== */

.login-subtitle {
    font-size: 1rem;
    color: #8A8A8A;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* ===========================================
   STEAM LOGIN BUTTON
   =========================================== */

.login-button {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    color: #EAEAEA;
    border: 1px solid #2a3f4f;
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Hover shine effect */
.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(102, 192, 244, 0.15);
    background: linear-gradient(135deg, #243447 0%, #1b2838 100%);
    border-color: #3d5a73;
}

.login-button:active {
    transform: translateY(-1px);
}

.login-button i {
    font-size: 1.4rem;
    color: #66c0f4;
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: scale(1.1);
}

/* ===========================================
   DOWNLOAD LINK
   =========================================== */

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 32px;
    background: transparent;
    color: #C9A66B;
    border: 1px solid #C9A66B;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.download-link:hover {
    background: rgba(201, 166, 107, 0.1);
    box-shadow: 0 0 20px rgba(201, 166, 107, 0.2);
    transform: translateY(-2px);
}

.download-link i {
    font-size: 1rem;
}

/* ===========================================
   FOOTER INFO
   =========================================== */

.login-footer {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
    color: #5A5A5A;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-footer i {
    color: #C9A66B;
    font-size: 1rem;
}

/* ===========================================
   MAIN CONTENT STATES
   =========================================== */

.main-content.hidden {
    display: none;
}

.main-content {
    animation: contentFadeIn 0.5s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 520px) {
    .login-container {
        min-width: auto;
        margin: 20px;
        padding: 40px 30px;
        border-radius: 20px;
    }

    .login-banner img {
        max-height: 80px;
    }

    .login-subtitle {
        font-size: 0.95rem;
    }

    .login-button {
        padding: 16px 36px;
        font-size: 1rem;
        width: 100%;
    }
}
