/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #00428D 0%, #0077FF 100%);
}

/* Contenedor central */
#contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#central {
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Logo */
.login img {
    width: 60%;
    margin-bottom: 20px;
}

/* Grupo de inputs */
.inputgroup {
    position: relative;
    margin: 20px 0;
    caret-color: black;
}

.inputgroup input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 0.3s ease-in-out;
}

.inputgroup input:focus {
    border-color: #0077FF;
    background: #fff;
}

/* Labels flotantes */
.inputgroup label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    background: white;
    padding: 0 5px;
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 5px;
}

/* Efecto flotante cuando el input está en uso */
.inputgroup input:focus + label,
.inputgroup input:not(:placeholder-shown) + label {
    top: 0;
    left: 12px;
    font-size: 14px;
    color: #0077FF;
}

/* Botón de login */
.login_botonIngresar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3794FE 0%, #00428D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login_botonIngresar:hover {
    opacity: 0.85;
}

/* Pie de página */
.pie-form {
    margin-top: 15px;
    font-size: 14px;
}

.pie-form a {
    color: #0077FF;
    text-decoration: none;
    font-weight: bold;
}

.pie-form a:hover {
    text-decoration: underline;
}

/* Icono de mostrar contraseña */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 20px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0077FF;
}

/* Ajustar para el autocompletado del navegador */
.inputgroup input:-webkit-autofill,
.inputgroup input:-webkit-autofill:focus {
    background-color: #eaf2ff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ajuste de labels con autocompletado */
.inputgroup input:-webkit-autofill + label,
.inputgroup input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 14px;
    color: #0077FF;
}

/* Responsive */
@media (max-width: 480px) {
    #central {
        width: 95%;
        padding: 30px;
    }
}
