﻿/* Importamos Oswald y Roboto directamente de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Roboto para todo el texto general, campos y descripciones */
    font-family: 'Roboto', sans-serif;
}

/* Aplicamos Oswald solo a lo que necesita impacto */
.info-block h1, .info-block h2, .glass-panel h3, .ready-text, .btn-login {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Estilos específicos para el H1 dividido */
.info-block h1 {
    font-size: 3.5rem; /* Tamaño masivo estilo AFTRACK */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.8));
}

.text-accent {
    color: #cc5500; /* Tu tono naranja/óxido original */
    /* Si prefieres el amarillo/dorado de la imagen, usa: color: #F8C545; */
}

.text-white {
    color: #ffffff;
}

.info-block h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    color: #cc5500; /* Mismo color de acento */
    letter-spacing: 0.5px;
}

.glass-panel h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.glass-panel h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.2rem;
    margin-top: 0; /* Evita que se baje de más */
    margin-bottom: 0.2rem; /* Pega el subtítulo hacia arriba */
    color: #ffffff;
    letter-spacing: 1px;
}

/* Subtítulo ¿Estás listo? */
.ready-text {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    color: #cc5500;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 0; /* Clave para que no se descuadre */
    margin-bottom: 2rem; /* Da espacio exacto antes del primer input */
}


body {
    background-color: #090909;
    /* 1. Ruta de tu imagen */
    background-image: linear-gradient(rgba(9, 9, 9, 0.7), rgba(9, 9, 9, 0.8)), url('../images/hybridlogin.png');
    /* 2. Cover: hace que la imagen llene toda la pantalla sin deformarse */
    background-size: cover;
    /* 3. Center: asegura que el recorte en celulares se haga desde el centro hacia afuera */
    background-position: center;
    /* 4. Fixed: hace que si haces scroll, la imagen se quede quieta (efecto elegante) */
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Textos informativos */
.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-block h1, .info-block h2 {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    /* Color sólido estilo Strava/App deportiva limpia */
    color: #ff5722; /* Un naranja vibrante, puedes usar #fc4c02 que es el naranja exacto de Strava */
    /* Sombra más sutil y elegante */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.info-block h1 {
    font-size: 2.7rem; /* Letra enorme para el título principal */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.info-block h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
}


.info-block p, .info-block ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

.info-block p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Asegura que se lea perfecto */
}

.info-block ul {
    list-style: none;
}

    .info-block ul li {
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
    }

        .info-block ul li::before {
            content: "⚡";
            position: absolute;
            left: 0;
            color: #cc5500;
        }

/* Caja de Login - Glassmorphism */
.glass-panel {
    background: rgba(40, 40, 40, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(204, 85, 0, 0.3); /* Borde sutil naranja */
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

    .glass-panel h3 {
        font-family: 'Barlow', sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        text-align: center;
        font-size: 2rem;
        margin-bottom: 0.2rem;
        color: #ffffff;
        letter-spacing: 1px;
    }
.input-group {
    margin-bottom: 1.5rem;
}

    .input-group input {
        width: 100%;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid #333;
        border-radius: 8px;
        color: #fff;
        font-size: 1rem;
        outline: none;
        transition: border-color 0.3s ease;
    }

        .input-group input:focus {
            border-color: #cc5500;
        }

.btn-login {
    width: 100%;
    padding: 1rem;
    background: #cc5500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

    .btn-login:hover {
        background: #e65c00;
    }

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

    .auth-links a {
        color: #aaaaaa;
        text-decoration: none;
        transition: color 0.3s;
    }

        .auth-links a:hover {
            color: #cc5500;
        }

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}
/* =========================================
   1. ANIMACIONES Y FORMAS DE FONDO
   ========================================= */
.shape {
    position: absolute;
    filter: blur(90px);
    z-index: 1; /* La luz va sobre el fondo, pero bajo el login */
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: #cc5500;
    top: -150px;
    left: -100px;
    opacity: 0.45;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: #662a00;
    bottom: -100px;
    right: 5%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(30px) scale(1.05);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* =========================================
   2. CONTENEDOR PRINCIPAL
   ========================================= */
.login-wrapper {
    display: flex;
    flex-direction: row; /* En PC se ve lado a lado */
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 10; /* El login queda hasta enfrente */
}

/* =========================================
   3. NOTIFICACIONES
   ========================================= */
.success-message {
    background: rgba(40, 167, 69, 0.15);
    border-left: 4px solid #28a745;
    color: #ffffff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

    .success-message i {
        color: #28a745;
        font-size: 1.2rem;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   4. RESPONSIVIDAD PARA MÓVILES (SIEMPRE AL FINAL)
   ========================================= */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column; /* En celular se apila uno sobre otro */
        justify-content: center;
        padding: 1rem;
    }

    .info-section {
        order: 2; /* En celular, la info pasa abajo del login */
        gap: 1.5rem;
        text-align: center;
    }

    /* Reducimos el tamaño de los títulos gigantes en celular */
    .info-block h1 {
        font-size: 2.5rem;
    }

    .info-block h2 {
        font-size: 1.5rem;
    }

    .info-block ul li::before {
        display: none;
    }

    .info-block ul li {
        padding-left: 0;
    }

    .glass-panel {
        order: 1; /* El recuadro de login aparece primero arriba */
        padding: 2rem 1.5rem;
        width: 100%; /* Asegura que no se desborde */
    }
}