@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
        border-color: #00f2ff;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 242, 255, 0.8);
        border-color: #8affff;
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
        border-color: #00f2ff;
    }
}

#auth-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url('https://play.rosebud.ai/assets/main-menu-bg-img.png?CdNH');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    color: white;
    font-family: 'Press Start 2P', cursive;
    display: none;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5%;
    z-index: 101;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#auth-container.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.auth-panel {
    background-color: rgba(10, 10, 10, 0.85);
    border: 2px solid #00f2ff;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    border-radius: 5px;
    animation: pulseGlow 4s infinite ease-in-out;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff, 0 0 20px rgba(0, 242, 255, 0.5);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
}

.auth-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.auth-tab.active {
    color: #00f2ff;
    border-bottom-color: #00f2ff;
}

.auth-tab:hover:not(.active) {
    color: #fff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-input:focus {
    outline: none;
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.auth-button {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 242, 255, 0.2);
    border: 1px solid #00f2ff;
    color: #00f2ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #00f2ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.7);
}

.auth-message {
    margin-top: 15px;
    font-size: 0.7rem;
    color: #ff4d4d;
    min-height: 20px;
    text-align: left;
    text-transform: uppercase;
}