/* Contenedor del formulario de registro con scroll */
.registro-form-container {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar personalizado */
.registro-form-container::-webkit-scrollbar {
    width: 6px;
}

.registro-form-container::-webkit-scrollbar-track {
    background: transparent;
}

.registro-form-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.registro-form-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ===============================================
   SECCIÓN DE INFORMACIÓN DE LIGAS
   =============================================== */

.liga-info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.liga-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.liga-info-title::before {
    content: '🏆';
    font-size: 1.1rem;
}

.liga-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.liga-info-item {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    padding-left: 1.75rem;
    position: relative;
}

.liga-info-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.liga-info-highlight {
    font-weight: 600;
    color: var(--text-dark);
}

.liga-info-secondary {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ===============================================
   RESPONSIVE PARA LIGA INFO
   =============================================== */

@media (max-width: 768px) {
    .liga-info-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .liga-info-title {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

    .liga-info-list {
        gap: 0.75rem;
    }

    .liga-info-item {
        font-size: 0.85rem;
        padding-left: 1.5rem;
    }
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #666;
}
.form-nombre {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #666;
}

.form-hint.error {
    color: #d32f2f;
}

.form-hint.warning {
    color: #f57c00;
}

.form-hint.success {
    color: #2e7d32;
}

/* ===============================================
   GRID DE EQUIPOS
   =============================================== */

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.4rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.equipo-radio {
    position: relative;
    cursor: pointer;
}

.equipo-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.equipo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.equipo-radio input[type="radio"]:checked + .equipo-content {
    background: #e3f2fd;
    border-color: #0066CC;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.equipo-bandera {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.equipo-nombre {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.equipo-content:hover {
    border-color: #0066CC;
    background: #f5f5f5;
}

/* ===============================================
   GRID DE LIGAS
   =============================================== */

.ligas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.liga-checkbox {
    position: relative;
    cursor: pointer;
}

.liga-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.liga-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.liga-checkbox input[type="checkbox"]:checked + .liga-content {
    background: #e8f5e9;
    border-color: #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.liga-icon {
    font-size: 1.5rem;
}

.liga-nombre {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.liga-content:hover {
    border-color: #2e7d32;
    background: #f5f5f5;
}

/* ===============================================
   LOADING STATES
   =============================================== */

.loading-equipos,
.loading-ligas {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.error-text {
    color: #d32f2f;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* ===============================================
   FOOTER DEL FORMULARIO
   =============================================== */

.footer-text {
    color: #666;
    margin-right: 0.5rem;
}

.footer-link-blue {
    color: #0066CC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link-blue:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* ===============================================
   ANIMACIONES
   =============================================== */

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .equipos-grid {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .equipo-bandera {
        font-size: 2rem;
    }
    
    .equipo-nombre {
        font-size: 0.7rem;
    }
    
    .ligas-grid {
        grid-template-columns: 1fr;
    }
    
    .registro-form-container {
        max-height: none;
        padding-right: 0;
    }
    .split-left {
        padding: 2rem 1.5rem;
        justify-content: space-between;
        background-attachment: scroll;
    }

    /* Logo estático arriba, no absolute */
    .logo-login {
        position: static;
        width: 200px;
        margin: 0;
        display: block;
    }

    .brand-logo {
        position: static;
        text-align: left;
        margin-bottom: 1rem;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-flags {
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }

    .hero-footer {
        font-size: 0.8rem;
    }

    .split-right {
        flex: 0 0 400px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    body {
        overflow: auto;
    }

    .split-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .split-left {
        flex: 0 0 280px;
        min-height: 280px;
        max-height: 280px;
        padding: 1rem 1.25rem 1.25rem;
        justify-content: space-between;
        background-attachment: scroll;
    }

    .logo-login {
        position: static;
        width: 130px;
        margin: 0;
        display: block;
    }

    .logodrogueria {
        position: static;
        width: 130px;
        margin: 0;
        display: block;
    }

    .brand-logo {
        position: static;
        text-align: left;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .hero-description {
        display: none;
    }

    .hero-flags {
        font-size: 1.6rem;
        letter-spacing: 0.5rem;
    }

    .hero-footer {
        display: none;
    }

    .split-right {
        flex: 1;
        padding: 1.75rem 1.25rem;
        align-items: flex-start;
    }

    .form-container {
        max-width: 100%;
        width: 100%;
    }

    .form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .equipos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .equipo-content {
        padding: 0.6rem 0.3rem;
    }
    
    .equipo-bandera {
        font-size: 1.75rem;
    }
    
    .equipo-nombre {
        font-size: 0.65rem;
    }
        .split-left {
        flex: 0 0 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .logo-login {
        width: 115px;
    }

    .logodrogueria {
        width: 115px;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-flags {
        font-size: 1.4rem;
        letter-spacing: 0.4rem;
    }
}

/* Checkbox de términos y condiciones */
.terminos-group {
    margin: 1rem 0 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 0;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-input:checked + .checkbox-custom::after {
    display: block;
}

.checkbox-input:focus + .checkbox-custom {
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.checkbox-text {
    flex: 1;
}

.terminos-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.terminos-link:hover {
    text-decoration: underline;
}

/* Estado de error para el checkbox */
.terminos-group.error .checkbox-custom {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}

.terminos-group.error .checkbox-text {
    color: #ff4444;
}