html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;   /* Asegura que sea 100% y no 100vw */
    overflow-x: hidden; /* Elimina cualquier scroll horizontal */
}

body {
    min-height: 100vh;
    position: relative;
    width: 100%;
    background: url('/img/imgprueba.jpg') no-repeat center center fixed;
    background-size: cover;
}



/* --- Navbar azul oscuro fijo arriba --- */
.navbar {
    width: 100%;
    background: #0a2540 !important;
    box-shadow: 0 2px 8px rgba(30,30,50,0.06);
    left: 0;
    top: 0;
    position: fixed;
    z-index: 1000;
}
.logo-navbar {
    height: 40px;
    width: auto;
    margin-right: 14px;
    background: transparent !important;
    object-fit: contain;
    display: block;
}

/* --- Fondo gradiente --- */
.background-gradient {
    min-height: 100vh;
    width: 100%;      /* <---- Cambia de 100vw a 100% */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    padding-bottom: 48px;
    height: 100vh;
    /* quita min-width/max-width/width relacionados a vw */
    box-sizing: border-box;
    overflow: visible;
}




/* --- Animación de aparición del form --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px) scale(0.98);}
    to   { opacity: 1; transform: translateY(0) scale(1);}
}

/* --- Contenedor Form --- */
.container-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(24,103,192,0.10);
    margin-left: 6vw;      /* Aumenta el margen si quieres más separación a la izquierda */
    min-width: 500px;      /* Puedes subir aún más si quieres: 560px, 600px, etc. */
    max-width: 720px;      /* Más ancho aún, puedes probar hasta 800px si quieres */
    width: 100%;
    padding: 48px 44px 36px 44px;
    box-sizing: border-box;
    animation: fadeInUp 0.7s cubic-bezier(.29,.95,.7,1.29);
}

.container-form h2 {
    color: #15569a;
    margin-bottom: 32px;   /* más aire arriba */
    font-weight: 700;
    font-size: 2rem;       /* un poco más grande */
    letter-spacing: 1px;
    text-align: left;
}


/* --- Botón animado --- */
.btn-dark {
    background: linear-gradient(90deg, #0a2540 60%, #ff9e2c 100%) !important;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 7px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #12549e26;
    transition: background 0.21s, box-shadow 0.21s, transform 0.13s;
}
.btn-dark:hover {
    background: linear-gradient(90deg, #15569a 70%, #ff8400 100%) !important;
    box-shadow: 0 4px 18px #12549e33;
    transform: scale(1.025);
}

/* --- Footer fijo abajo --- */
.footer {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    height: 48px;
    background: #0a2540;
    display: flex;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -1px 8px #0001;
}
.footer-content {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive ajustes */
@media (max-width: 800px) {
    .container-form {
        max-width: 99vw;
        min-width: 0;
        padding: 15px 6px 10px 6px;
        margin: 18px auto 0 auto;
    }
    .background-gradient {
        justify-content: center;
        align-items: flex-start;
        padding-top: 70px;
        padding-bottom: 55px;
    }
    .logo-navbar {
        height: 30px;
        margin-right: 7px;
    }
}



.form-control {
    font-size: 1.11rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    min-height: 56px;
}
.form-floating > label {
    transition:
        all 0.28s cubic-bezier(.55,.01,.52,1.27),
        color 0.21s cubic-bezier(.44,0,.59,1),
        opacity 0.21s cubic-bezier(.44,0,.59,1);
    will-change: transform, font-size, top, left, color, opacity;
}

/* Opcional: suaviza el input focus para que también ayude al efecto visual */
.form-control:focus {
    box-shadow: 0 0 0 0.14rem #15569a33;
    border-color: #15569a;
    background: #f7fafd;
    transition: box-shadow 0.22s cubic-bezier(.44,0,.59,1), border-color 0.22s cubic-bezier(.44,0,.59,1), background 0.18s;
}