html,
body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
}

.sieedc-login-background {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Fondos responsivos */
@media (min-width: 1200px) {
    .sieedc-login-background {
        background-image: url("../images/login/loging_1900px_fondo_desk.jpg");
        min-height: 100vh;
    }
    .sieedc-logo {
        width: 70%;
        max-width: 1000px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .sieedc-login-background {
        background-image: url("../images/login/loging_1192px_fondo_tab.jpg");
        min-height: 100vh;
    }
    .sieedc-logo {
        width: 75%;
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .sieedc-login-background {
        background-image: url("../images/login/loging_768px_fondo_cell.jpg");
        min-height: 300px; /* Altura fija más corta en cels */
        height: auto;
    }
    .sieedc-logo {
        width: 80%;
        max-width: 500px;
    }
}

.sieedc-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.sieedc-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    line-height: 1.4;
    max-width: 90%;
    text-align: center;
}

.custom-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: visible;
}

.custom-page .row.bg-white {
    margin: 0;
}

/* Esta regla es importante para asegurar que respete las columnas */
.custom-page .row > div {
    padding: 0;
}

.bienvenido {
    font-weight: 700 !important;
    color: #000 !important;
}

.btn-primary {
    background-color: #d77f3a !important;
    border-color: #d77f3a !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* Estilos para los inputs del formulario */
.form-control {
    height: 50px !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
}

/* Estilo para el enlace de olvidaste contraseña */
.forgot-password {
    display: block;
    margin-top: 20px;
    text-align: left;
}

.forgot-password a {
    color: #c83461 !important;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password .small-text {
    color: #888;
    font-size: 0.85em;
    display: block;
    margin-top: 3px;
}

/* Orden en cels */
@media (max-width: 767px) {
    .custom-page {
        min-height: auto;
        height: auto;
    }

    .custom-page .row.bg-white {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .mobile-container {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .order-mobile-first {
        order: 1;
    }

    .order-mobile-second {
        order: 2;
    }

    .login {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        min-height: 50vh;
    }
    .pyc {
        padding-top: 0px !important;
    }
    .main-signup-header {
        border: 0px !important;
        margin: 15px;
    }
}
