/* ==============================================================================
   SISTEMA DE GESTION DE GIMNASIO "LOS A'ANGELES FITNESS CLUB"
   PASO 3: HOJA DE ESTILOS PRINCIPAL (GLASSMORPHISM & MOBILE FIRST)
============================================================================== */

/* 1. IMPORTAR FUENTE Y VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta de Colores Solicitada */
    --color-morado: #6B21A8;
    --color-rosa: #DB2777;
    --color-fucsia: #E81CFF;
    
    /* Variables de Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Textos */
    --text-light: #ffffff;
    --text-dark: #1f2937;
}

/* 2. RESETEO BÁSICO Y BODY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Fondo con gradiente animado (Morado -> Rosa -> Fucsia) */
    background: linear-gradient(-45deg, var(--color-morado), var(--color-rosa), var(--color-fucsia));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light);
    min-height: 100vh;
    /* Ajustes para simular App Móvil */
    padding-bottom: 70px; /* Espacio para el footer fijo */
    overflow-x: hidden;
}

/* Animación del fondo */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3. CLASES UTILITARIAS PARA GLASSMORPHISM (El núcleo de tu diseño) */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 10px;
    padding: 12px 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 4. HEADER (Barra Superior) */
.top-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--color-morado);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 5. NAVEGACIÓN INFERIOR (Estilo Telegram / App) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* Para iPhones */
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item:hover, .nav-item.active {
    color: white;
    transform: translateY(-3px);
}

/* 6. PANTALLA DE LOGIN ESPECÍFICA */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px; /* Tamaño máximo para escritorio, en móvil ocupa el 100% */
}

.logo-gym {
    text-align: center;
    margin-bottom: 30px;
}
.logo-gym i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* Ajustes para alertas de Bootstrap sobre fondo oscuro */
.alert-glass {
    background: rgba(220, 53, 69, 0.3); /* Rojo semitransparente para errores */
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
    backdrop-filter: blur(5px);
}