/* 📌 Contenedor del formulario */
.signup-container {
    max-width: 1500px; /* 🔹 Más ancho para acomodar 4 columnas */
    margin: 50px auto;
    padding: 30px;
    background-image: url('/uploads/logos/fondoPubs.png'); 
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    
}

/* 📌 Título del formulario */
.signup-container h2 {
    font-size: 30px;
    text-align: center;
    color: #9f2241;; /* Color rojo atractivo */
    font-weight: bold;
    margin-bottom: 40px;
}
.signup-container h3 {
    font-size: 30px;
    text-align: center;
    color: #9f2241;; /* Color rojo atractivo */
    
    font-weight: 700;
    margin-bottom: 30px;
}
.signup-container p {
    font-size: 20px;
   
    color: #007bff;
    font-weight: bold;
    margin-bottom: 40px;
}

/* 🔹 Secciones con fondo para títulos o textos informativos */
.section-header {
    
    font-size: 20px;
    color: #007bff;
    margin-bottom: 15px;
    background-color: #9f2241;
    align-items: center;
    font-weight: 700;
  
}

.section-header h3,
.section-header p {
    margin: 0;
    margin-left: 5px;
    color: #ffffff;
    font-weight: 700;
}


/* 📌 Organiza en 4 columnas usando GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔹 Cuatro columnas de tamaño igual */
    gap: 20px;
   
}

/* 📌 Ajustes para cada columna */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 📌 Ajuste para los títulos dentro de cada columna */
.form-column h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    
   
}

/* 📌 Estilizar los campos de formulario */
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group select {
    width: 100%;
    max-width: 100%; /* 🔹 Evita que se salgan del contenedor */
    min-width: 150px; /* 🔹 Mínimo tamaño para evitar deformaciones */
}

/* 📌 Botón de registro */
.signup-container .btn-primary {
    background-color: #9f2241;
    width: 300px;
    border: none;
    align-self: center;
    padding: 12px 24px;
    font-size: 18px;
    transition: 0.3s;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}


.signup-container .btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* 📌 Botón para ir al login */
.login-link {
    width: 300px;
    align-self: center;
    
    text-align: center;
    margin-top: 20px;
    .btn-primary{
        width: 140px;
    }
}


/* 📌 Validaciones de errores */
.has-error .help-block {
    color: red !important;
    font-size: 14px;
}
/* 📌 imagenes */

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espacio entre imágenes */
    margin-top: 10px;
}

.image-preview-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.image-preview-container img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 5px;
}


/* 📌 fin imagenes */




/* 📌 Responsividad */




@media (max-width: 1025px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 🔹 2 columnas en pantallas medianas */
    }
    .form-group {
        position: relative;
        overflow: hidden; /* 🔹 Oculta cualquier desbordamiento */
    }
    
    .form-group select {
        font-size: 14px; /* 🔹 Reduce el tamaño de fuente en móviles */
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2; /* 🔹 Reduce la altura de línea para que no se extienda mucho */
        overflow-wrap: break-word; /* 🔹 Asegura que el texto se quiebre correctamente */
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr); /* 🔹 1 columna en pantallas pequeñas */
    }
    .form-group {
        position: relative;
        overflow: hidden; /* 🔹 Oculta cualquier desbordamiento */
    }
    .form-group select {
        font-size: 14px; /* 🔹 Reduce el tamaño de fuente en móviles */
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2; /* 🔹 Reduce la altura de línea para que no se extienda mucho */
        overflow-wrap: break-word; /* 🔹 Asegura que el texto se quiebre correctamente */
    }

    .signup-container h2 {
        font-size: 26px;
        
    }

    .signup-container form .btn-primary {
        width: 100%;
    }

    .login-link .btn-primary {
        width: 100%;
    }
}

/* 📌 Evitar que el footer se descomponga */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #ddd;
}
