/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-card-blue: rgba(6, 17, 33, 0.90); /* Glassmorphic azul traslúcido */
    --accent-red: #9e0b13;
    --bright-red: #e61a23;
    --text-white: #ffffff;
    --text-gray: #e2e8f0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: relative;
    
    /* Tu fondo de estadio original */
    background-image: url('../img/estadio2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Capa de contraste premium con difuminado por hardware */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(3, 8, 18, 0.75) 30%, rgba(158, 11, 19, 0.25) 100%);
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
    padding: 25px 50px;
    position: absolute;
    top: 0; left: 0;
    z-index: 10;
}

.navbar nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--bright-red);
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL (GRID ORIGINAL 1FR 1FR)
   ========================================================================== */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    padding: 50px;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   SECCIÓN IZQUIERDA (CONTENEDOR DE TU LOGO EN SU TAMAÑO)
   ========================================================================== */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
}

.left-section img {
    filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.6));
    transition: transform 0.4s ease;
}

.left-section img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   SECCIÓN DERECHA (TARJETA DE LOGIN Y CONTROLES INTERACTIVOS)
   ========================================================================== */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Tarjeta con tus dimensiones originales de 500px */
.login-card {
    background-color: var(--bg-card-blue);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    padding: 45px 35px 35px 35px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.65);
}

/* Badge superior calibrado exactamente a 52px */
.baseball-badge {
    position: absolute;
    top: -26px; left: 50%;
    transform: translateX(-50%);
    background: var(--text-white);
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--accent-red);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    overflow: hidden;
}

.login-card h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    color: var(--text-white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Controles de Formularios Avanzados */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 22px 15px 52px; /* Espacio exacto para el icono izquierdo */
    border-radius: 30px;
    border: 2px solid transparent;
    background-color: var(--text-white);
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper input:focus {
    border-color: var(--bright-red);
    box-shadow: 0 0 15px rgba(230, 26, 35, 0.45);
}

.input-wrapper input::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 20px;
    color: #4a5568;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--bright-red);
}

/* Botón de Acción Principal */
.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--bright-red) 0%, var(--accent-red) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(230, 26, 35, 0.35);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 26, 35, 0.55);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.register-link a {
    color: #ff4d55;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    margin-left: 3px;
}

.register-link a:hover {
    text-shadow: 0 0 8px rgba(255, 77, 85, 0.6);
}

/* ==========================================================================
   BARRA DE ACCIONES INFERIOR DOCK (MANTENIENDO TUS 510PX)
   ========================================================================== */
.action-bar {
    background-color: var(--bg-card-blue);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 510px; 
    padding: 10px 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    gap: 6px;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

.action-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.action-icon span {
    font-size: 1.15rem;
    color: white;
}

/* Contenedor adaptativo para tu imagen original dentro del dock */
.img-icon {
    overflow: hidden;
}

.img-icon img {
    object-fit: contain;
}

.action-text {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #cbd5e1;
}

/* Modificadores de Interacción */
.action-item:hover {
    color: #ff4d55;
}

.action-item:hover .action-icon {
    background: rgba(230, 26, 35, 0.2);
    border-color: var(--bright-red);
    transform: translateY(-3px);
}

.action-item:hover .action-text {
    color: white;
}

.action-item.dots {
    flex: 0;
    padding: 0 10px;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL INTECO
   ========================================================================== */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 90px 20px 30px 20px;
        gap: 40px;
    }
    .left-section {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }
    .navbar {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    .navbar nav a {
        margin: 0 15px;
    }
}