/* ============================================================
   LOGIN.CSS — Estilos de login, cuenta y modal de registro
   Patricia Alonso · patriciaalonso.es
   ============================================================ */

/* ============================================================
   CONTENEDOR LOGIN — debajo del banner, alineado a la derecha
   ============================================================ */
.login-superpuesto {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    box-sizing: border-box;
    gap: 8px;
}

/* ============================================================
   BOTÓN "INICIAR SESIÓN / REGÍSTRATE"
   ============================================================ */
.btn-cuenta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(123, 95, 224, 0.4);
    padding: 9px 18px;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 6px rgba(123, 95, 224, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cuenta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px #7B5FE0, 0 0 20px #9146FF;
}

.cuenta-icon { font-size: 1rem; }

/* ============================================================
   BOTONES DE LOGIN (Twitch / Google) — usados dentro del modal
   ============================================================ */
.btn-login {
    background-color: rgba(123, 95, 224, 0.8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 0 6px #7B5FE0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px #7B5FE0, 0 0 20px #9146FF;
}

.btn-login-modal {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* ============================================================
   BOTÓN TWITCH
   ============================================================ */
.btn-login.twitch {
    background-color: #9146FF;
    box-shadow: 0 0 6px #9146FF;
}

.btn-login.twitch:hover {
    box-shadow: 0 0 12px #9146FF;
}

.twitch-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   BOTÓN GOOGLE
   ============================================================ */
.btn-login.google {
    background-color: #fff;
    color: #333;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.btn-login.google:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.google-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   BANNER USUARIO LOGUEADO
   ============================================================ */
.user-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 95, 224, 0.25);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px #7B5FE0;
}

.user-banner .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    flex-shrink: 0;
}

.user-banner .username { display: none; }
.user-banner span,
.user-banner p,
.user-banner strong { display: none; }

/* ============================================================
   BOTÓN LOGOUT
   ============================================================ */
.logout-button {
    background: #7B5FE0;
    color: white;
    padding: 4px 9px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.65rem;
    font-family: 'Cinzel', serif;
    box-shadow: 0 0 6px #7B5FE0;
    transition: 0.2s ease;
    white-space: nowrap;
}

.logout-button:hover {
    background: #c98fc2;
    box-shadow: 0 0 12px #7B5FE0;
}

/* ============================================================
   MODAL DE LOGIN / REGISTRO
   ============================================================ */
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-modal-overlay.show { display: flex; }

.login-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 10, 30, 0.97);
    border: 1px solid rgba(123, 95, 224, 0.4);
    border-radius: 16px;
    padding: 32px 24px 26px;
    box-shadow: 0 0 30px rgba(123, 95, 224, 0.3), 0 0 50px rgba(145, 70, 255, 0.2);
    backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.login-modal-cerrar {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.login-modal-cerrar:hover { opacity: 1; }

.login-modal-titulo {
    font-family: 'Cinzel', serif;
    color: #7B5FE0;
    text-align: center;
    font-size: 1.2rem;
    margin: 0 0 22px;
    text-shadow: 0 0 8px #7B5FE0;
}

.login-modal-separador {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    margin: 16px 0;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.login-modal-separador::before,
.login-modal-separador::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.login-modal-separador span { padding: 0 10px; }

.btn-login-manual-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.btn-login-manual-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.login-modal-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tab-login {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.tab-login.activa {
    background: rgba(123, 95, 224, 0.2);
    color: #7B5FE0;
    border-color: #7B5FE0;
}

.form-login-manual label {
    display: block;
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 12px;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.form-login-manual input {
    width: 100%;
    padding: 9px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(123, 95, 224, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.form-login-manual button[type="submit"] {
    width: 100%;
    margin-top: 18px;
}

.login-modal-volver {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.login-modal-volver:hover { color: #fff; }

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */
@media (max-width: 768px) {
    .login-superpuesto {
        padding: 10px 14px;
    }

    .btn-cuenta {
        font-size: 0.68rem;
        padding: 8px 14px;
    }

    .user-banner .avatar {
        width: 26px;
        height: 26px;
    }
}