/* EliteGames Custom Login */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    --main-color: #FF6B00;
}

a { background: none !important; color: inherit; text-decoration: none; }

.login-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../src/login-bg.png') center/cover no-repeat;
    z-index: 0;
    filter: brightness(0.4) saturate(1.3);
}

.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,80,0,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,120,0,0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,10,15,0.7) 0%, rgba(10,10,15,0.3) 50%, rgba(10,10,15,0.8) 100%);
    z-index: 1;
}

/* ── Fire Particles ── */
.login-particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    border-radius: 50%;
    animation: ember-rise linear infinite;
    filter: blur(0.5px);
}

.ember.sm {
    width: 2px; height: 2px;
    background: rgba(255, 160, 40, 0.6);
    box-shadow: 0 0 4px rgba(255, 120, 0, 0.4);
}

.ember.md {
    width: 3px; height: 3px;
    background: rgba(255, 130, 20, 0.7);
    box-shadow: 0 0 6px rgba(255, 100, 0, 0.5);
}

.ember.lg {
    width: 4px; height: 4px;
    background: rgba(255, 100, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 80, 0, 0.6), 0 0 20px rgba(255, 60, 0, 0.2);
}

@keyframes ember-rise {
    0% {
        transform: translateY(0) translateX(0) scale(0.3);
        opacity: 0;
    }
    8% { opacity: 1; }
    50% {
        transform: translateY(-45vh) translateX(var(--drift)) scale(1);
        opacity: 0.8;
    }
    85% { opacity: 0.3; }
    100% {
        transform: translateY(-100vh) translateX(calc(var(--drift) * 1.5)) scale(0.1);
        opacity: 0;
    }
}

/* Subtle floating glow orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    animation: orb-float ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(var(--ox), var(--oy)) scale(1.3); }
}

/* ── Login Card ── */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    background: rgba(12, 12, 16, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 107, 0, 0.12);
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.6),
        0 0 100px rgba(255,107,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.03);
    animation: card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes card-in {
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    from { box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15); }
    to { box-shadow: 0 8px 48px rgba(255, 107, 0, 0.3); }
}

.login-brand {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.login-brand span {
    color: #FF6B00;
}

.login-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.login-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B00, transparent);
    margin: 0 auto 28px;
    border: none;
}

.login-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 36px;
}

.steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #FF6B00, #FF8C33) !important;
    border: none;
    border-radius: 12px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.steam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.45);
    background: linear-gradient(135deg, #FF7B1A, #FF9C44) !important;
    color: #fff !important;
}

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

.steam-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.login-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.login-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.login-feature-icon {
    font-size: 20px;
}

.login-feature-text {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Footer ── */
.login-footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    animation: fade-in 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.login-footer a {
    color: rgba(255,255,255,0.3) !important;
    background: none !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s;
    padding: 0;
}

.login-footer a:hover {
    color: #FF6B00 !important;
    background: none !important;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ── Loading ── */
#loading {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,15,0.9);
    z-index: 9999;
    place-items: center;
}

#loading[data-loading] {
    display: grid;
}

#loading span {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,107,0,0.2);
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 500px) {
    .login-card {
        margin: 16px;
        padding: 36px 24px;
    }
    .login-brand {
        font-size: 22px;
    }
    .login-features {
        gap: 16px;
    }
    .login-feature-text {
        font-size: 10px;
    }
}
