/* LOGIN/WELCOME/LOGOUT MODAL - MODERNIZED */

/* Modal Background - Darker overlay with blur */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content - Glassmorphism with golden theme */
.login-modal-content {
    position: relative;
    width: 400px;
    max-width: 90%;
    padding: 40px 30px 30px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.login-modal-content::before {
    content: 'Welcome Back';
    display: block;
    font-family: 'Lobster', cursive;
    font-size: 2em;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Close Button - Golden with hover effect */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5em;
    color: rgba(255, 215, 0, 0.8);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
}

/* Input Fields - Modern glassmorphism style */
.login-modal-content input[type="text"],
.login-modal-content input[type="password"] {
    font-size: 1em;
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-modal-content input[type="text"]::placeholder,
.login-modal-content input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-modal-content input[type="text"]:focus,
.login-modal-content input[type="password"]:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

/* Login Button - Golden theme */
.login-modal-content button[type="submit"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.6));
    color: #000;
    border: 2px solid #FFD700;
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-modal-content button[type="submit"]:hover {
    background: linear-gradient(135deg, #FFD700, rgba(255, 215, 0, 0.8));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Create Account Button - Glassmorphism with golden border */
.login-modal-content button.create-account {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    width: 100%;
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-modal-content button.create-account:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* Welcome Container - Modernized */
.welcome-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 160px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.welcome-message {
    font-size: 0.95em;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Logout Button - Golden themed */
.logout-button {
    display: inline-block;
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
    background: rgba(220, 53, 69, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(220, 53, 69, 1);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: bold;
}

.logout-button:hover {
    background: rgba(220, 53, 69, 1);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-modal-content {
        width: 90%;
        padding: 30px 20px 20px 20px;
    }

    .login-modal-content::before {
        font-size: 1.5em;
    }
}