/* Login wrapper */
.login-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #f8f8f8;
    padding-bottom: 110px; /* Ajusta este valor al alto real de tu footer */
    min-height:30vh;
    box-sizing: border-box;
}

.login-form-container {
    flex: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

/* Nuevo contenedor para la imagen en card */
.login-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: right;
    min-height: fit-content;
    background-color: #f8f8f8;
    padding: 10px;
    /* height: 50vh; */
    align-items: center;
    /* padding-top: 4%; */
}

.login-image-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 780px;
    height: 570px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image-inner {
    width: 100%;
    height: 100%;
    background-image: url('../img/log-dcomex2.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    aspect-ratio: 4 / 3;
}



.login-card {
    width: 480px;
    height: 560px; /* ajusta si lo quieres más alto o bajo */
    background-color: #ffffff;
    padding: 30px 45px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    color: #0b2c64;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
}

/* Input styles */
.form-label {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.input-wrapper {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dcdcdc;
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper input.form-control {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    color: #212529;
    width: 100%;
}

.toggle-password {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

/* Enlace recuperación */
.recovery-link {
    font-size: 13px;
    color: #ff9900;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 1.2rem;
}
.recovery-link:hover {
    text-decoration: underline;
}

/* Botón login */
.btn-login {
    background-color: #0b2c64;
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.btn-login:hover {
    background-color: #0a2657;
}

/* Texto de error */

.login-card .text-danger {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 850px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image-container {
        display: none;
    }

    .login-form-container {
        width: 100%;
        padding: 3rem 1.5rem;
    }
}
