/* Login Page Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.login-modal {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 80px rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
    transform-style: preserve-3d;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66c0f4, #4caf50);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.login-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.login-header h2 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-body {
    padding: 2rem 2rem 2.5rem 2rem;
}

.login-section {
    margin-bottom: 2rem;
}

.login-section:last-child {
    margin-bottom: 0;
}

.login-section label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.4);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-divider span {
    padding: 0 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 0;
}

.login-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15),
        0 4px 12px rgba(76, 175, 80, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-steam {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1.5px solid #66c0f4;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    color: #66c0f4;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-steam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.3), transparent);
    transition: left 0.6s;
}

.btn-steam:hover::before {
    left: 100%;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #66c0f4 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 192, 244, 0.4),
        0 0 30px rgba(102, 192, 244, 0.2);
    border-color: #66c0f4;
}

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

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #4caf50 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border: 1.5px solid #4caf50;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

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

.btn-login:hover {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5),
        0 0 40px rgba(76, 175, 80, 0.3);
    border-color: #66bb6a;
}

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

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.back-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.back-button:active {
    transform: scale(0.98);
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff5252;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
    .login-modal {
        max-width: 95%;
        border-radius: 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-body {
        padding: 1.5rem;
    }

    .back-button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .back-button svg {
        width: 16px;
        height: 16px;
    }
}