/* Fuente Global */
body {
    font-family: 'Poppins', sans-serif;
}

/* Asegurar que los títulos usen Poppins */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Normalmente, los títulos usan una fuente más gruesa */
}

/* Aplicar también a botones y formularios */
button, input, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* Cambiar estilo en elementos específicos */
.floating-container h2 {
    font-weight: 800; /* Hace que el título de "Project CURIKIDS" sea más grueso */
}

/* Estilo general */
.login-body {
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Posicionar selector de idioma arriba a la derecha */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Ajuste del botón de selección de idioma */
.language-selector .btn {
    background: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

/* Ajustar tamaño de banderas */
.flag-icon {
    width: 20px;
    height: auto;
}

/* Opciones del Dropdown */
.dropdown-menu {
    min-width: 150px;
}

/* Cambiar cursor a manita */
.dropdown-menu .dropdown-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s ease-in-out;
}

/* Efecto al pasar el mouse */
.dropdown-menu .dropdown-item:hover {
    background: #f0cb58;
    box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.1);
}

/* Imagen de Fondo (Abajo Izquierda) */
.europe-image {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 250px;
}

/* Imagen Superpuesta */
.superposed-image {
    position: relative;
    transform: translateY(25%);
    width: 150px;
}

/* Contenedor general */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

/* Sección flexible: imagen + formulario */
.login-wrapper > .d-flex {
    flex-grow: 1;
}

/* Imagen a la izquierda */
.login-image-container {
    flex: 1;
    min-width: 50%; /* Asegurar que la imagen no se achique */
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.login-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Formulario - Estilos generales */
.login-form-container {
    flex: 1;
    background-color: #f0cb58;
    border-radius: 0 15px 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
}

/* Asegurar que todos los paneles ocupen el mismo espacio */
.login-form-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Igualar tamaños de paneles */
#panel-inicial, #panel-adult, #panel-child {
    flex: 1;
    width: 100%;
}

/* Asegurar que el formulario de adultos no afecte la distribución */
#panel-adult form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

/* Tamaño de los input en formulario */
#panel-adult form .mb-3 {
    width: 100%;
}

/* Flecha de volver */
.back-button {
    position: relative;
    left: 0;
    top: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}

.back-button:hover {
    color: #000;
}

/* Estilo para inputs de código */
.code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.code-input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase; /* Asegura que siempre se ve en mayúsculas */
    border: 2px solid #ccc;
    border-radius: 5px;
}

.code-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0px 0px 5px rgba(52, 152, 219, 0.5);
}

/* Botones en la parte inferior */
.buttons-container {
    text-align: center;
    padding: 20px;
    border-radius: 0 0 15px 15px;
}

/* Div flotante */
.floating-container {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 80%;
    z-index: 10;
}

/* Estilo de imágenes dentro del float */
.floating-image {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Estilos de texto */
.floating-container h2 {
    font-size: 22px;
    font-weight: bold;
}

.floating-container .curikids-highlight {
    color: #f0cb58;
}

.floating-container p {
    font-size: 16px;
    color: #555;
}

#floating-alert {
    max-width: 400px;
    padding: 15px 20px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 1050; /* Asegura que esté sobre otros elementos */
}

/* Animación: Aparece desde arriba */
.alert-show {
    transform: translateY(100px); /* Se mueve hasta el centro */
    opacity: 1;
}

/* Estado inicial (oculto) */
.alert-hidden {
    transform: translateY(-50px); /* Empieza fuera de la pantalla */
    opacity: 0;
}