    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body, html {
        height: 100%;
        overflow: hidden;
        background-color: #ffffff;
    }

    .login-wrapper {
        display: flex;
        height: 100vh;
        width: 100vw;
    }

    .left-panel {
        flex: 1;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 60px;
        position: relative; /* Necesario para posicionar las capas internas */
        overflow: hidden;
    }

    /* Imagen estirada a todo lo ancho y alto del panel */
    .background-panel-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Evita que la foto se deforme */
        z-index: 1; /* Se sitúa al fondo de todo */
    }

    /* Capa oscura/azulada para que el texto blanco sea legible */
    .panel-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(5, 11, 20, 0.8) 0%, rgba(12, 27, 51, 0.85) 100%);
        z-index: 2; /* Va encima de la foto, debajo de las letras */
    }

    /* Forzar que los textos y logos queden al frente de la imagen */
    .logo-container, 
    .welcome-text, 
    .bottom-nav {
        position: relative;
        z-index: 3; /* Capa delantera */
    }

    .logo-container img {
        max-width: 220px;
        height: auto;
    }

    .welcome-text {
        max-width: 460px;
    }

    .welcome-text h2 {
        font-size: 1.8rem;
        font-weight: 400;
        color: #e2e8f0;
        margin-bottom: 5px;
    }

    .welcome-text h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #1E3DFF; /* Tu azul institucional */
        margin-bottom: 25px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Da fuerza al título sobre el fondo */
    }

    .welcome-text p {
        font-size: 1.05rem;
        color: #cbd5e1;
        line-height: 1.6;
    }

    /* Barra de navegación inferior */
    .bottom-nav {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #cbd5e1;
        font-size: 0.85rem;
        font-weight: 500;
        transition: color 0.2s;
    }

    .nav-item i {
        font-size: 1.5rem;
        color: #1E3DFF; /* Iconos en tu azul institucional */
        margin-bottom: 8px;
    }

    .nav-item:hover {
        color: #ffffff;
    }

    .right-panel {
        flex: 1;
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    /* Círculo indicador superior */
    .lock-badge {
        width: 70px;
        height: 70px;
        background-color: #edf2ff;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 25px;
    }

    .lock-badge i {
        font-size: 1.8rem;
        color: #1E3DFF;
    }

    .form-container h2 {
        font-size: 2rem;
        color: #0f172a;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .form-container .subtitle {
        font-size: 0.95rem;
        color: #64748b;
        margin-bottom: 35px;
    }

    /* Estilos de los campos de entrada */
    .input-group {
        margin-bottom: 25px;
        text-align: left;
    }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-wrapper i.input-icon {
        position: absolute;
        left: 16px;
        color: #94a3b8;
        font-size: 1.1rem;
    }

    .input-wrapper input {
        width: 100%;
        padding: 16px 16px 16px 45px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 1rem;
        outline: none;
        transition: border-color 0.2s;
        background-color: #ffffff;
    }

    .input-wrapper input:focus {
        border-color: #1E3DFF; /* Borde enfocado en tu azul */
    }

    .toggle-password {
        position: absolute;
        right: 16px;
        color: #64748b;
        cursor: pointer;
    }

    .input-help {
        display: block;
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 6px;
    }

    /* Botón de ingreso con tu azul institucional */
    .btn-submit {
        width: 100%;
        padding: 16px;
        background-color: #1E3DFF; 
        color: #ffffff;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        transition: background-color 0.2s;
    }

    .btn-submit:hover {
        background-color: #152ecc; /* Tono oscuro en hover */
    }

    .forgot-password {
        display: inline-block;
        margin-top: 20px;
        color: #1E3DFF;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .forgot-password:hover {
        text-decoration: underline;
    }

    /* Caja informativa inferior */
    .info-card {
        margin-top: 40px;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .info-card i {
        color: #1E3DFF;
        font-size: 1.2rem;
    }

    .info-card p {
        font-size: 0.82rem;
        color: #334155;
        line-height: 1.4;
    }

    .info-card a {
        color: #1E3DFF;
        text-decoration: none;
        font-weight: 600;
    }

@media (max-width: 900px) {
    body, html {
        overflow-y: auto; /* Permite scroll si la pantalla es muy pequeña */
    }

    .login-wrapper {
        flex-direction: column; /* Cambia a disposición vertical */
        height: auto;
        min-height: 100vh;
        background-color: #0c1b33; /* Fondo oscuro base */
    }

    /* --- PANEL SUPERIOR (IMAGEN Y LOGO) --- */
    .left-panel {
        height: 45vh; /* Ocupa el 45% superior de la pantalla */
        padding: 40px 20px;
        justify-content: flex-start; /* Alinea el logo arriba */
    }

    .background-panel-image {
        object-position: center center; /* Centra la foto del edificio */
    }

    /* Ocultamos textos y menú inferior que estorban en móvil */
    .welcome-text, 
    .bottom-nav {
        display: none !important;
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center; /* Centra el logo de Siglo 21 */
        margin-top: 10px;
    }

    .logo-container img {
        max-width: 180px; /* Tamaño controlado para móvil */
    }

    /* --- PANEL INFERIOR (TARJETA BLANCA SUPERPUESTA) --- */
    .right-panel {
        margin-top: -50px; /* Hace que la tarjeta suba y monte la imagen */
        background-color: #ffffff;
        border-radius: 32px 32px 0 0; /* Bordes muy redondeados arriba */
        padding: 40px 24px;
        position: relative;
        z-index: 10; /* Se posiciona por encima de la foto */
        flex: none;
        width: 100%;
    }

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

    /* Icono del candado flotante en el centro del borde superior */
    .lock-badge {
        position: absolute;
        top: -35px; /* Lo saca exactamente a la mitad del borde */
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        background-color: #ffffff; /* Fondo blanco como la imagen */
        border: 1px solid #edf2ff;
    }

    /* Ajuste de espaciados interiores del formulario en móvil */
    .form-container h2 {
        margin-top: 20px; /* Deja espacio para el candado absoluto */
        font-size: 1.7rem;
    }

    .form-container .subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .input-wrapper input {
        padding: 14px 14px 14px 45px; /* Inputs ligeramente más compactos */
    }
}