.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.h-custom {
    height: calc(100% - 73px);
}

@media (max-width: 450px) {
    .h-custom {
        height: 100%;
    }
}


/* ==========================================
   LOGIN - SISTEMA DE BOMBAS DE AGUA
========================================== */

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, #e2f3ff 0%, transparent 45%),
        linear-gradient(135deg, #f4f9fd, #eaf3fa);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #183b5b;
}

/* ==========================================
   CONTENEDOR PRINCIPAL
========================================== */

.login-container {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px 8px;
    overflow: hidden;
}

.login-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 100%;
    max-width: 1120px;
    height: calc(100vh - 65px);
    max-height: 720px;
    min-height: 0;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(20, 68, 108, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================
   PANEL DE IMAGEN
========================================== */

.login-image-panel {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #0875c9;
}

.login-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 37, 82, 0.02) 25%,
        rgba(0, 39, 83, 0.85) 100%
    );
}

.image-content {
    position: absolute;
    z-index: 2;
    left: 35px;
    right: 30px;
    bottom: 32px;
    color: #ffffff;
}

.water-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    font-size: 22px;
}

.image-content h1 {
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 750;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.image-content p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ==========================================
   PANEL DEL FORMULARIO
========================================== */

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 40px;
    background: #ffffff;
    min-width: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    color: #087bd1;
    background: #e9f5ff;
    border-radius: 16px;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px #d5eaff;
}

.welcome-label {
    color: #0786d9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.login-form-panel h2 {
    color: #143958;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.login-description {
    color: #7a8b9b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================
   CAMPOS DEL FORMULARIO
========================================== */

.login-form-panel .form-outline {
    margin-bottom: 18px !important;
}

.login-form-panel .form-label {
    display: block;
    color: #29465f;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
}

.login-input-group {
    border: 1px solid #dce7f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbfe;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-group:focus-within {
    border-color: #1386d4;
    box-shadow: 0 0 0 4px rgba(19, 134, 212, 0.10);
}

.login-input-group .input-group-text {
    padding-left: 15px;
    padding-right: 8px;
    border: 0;
    color: #2585c5;
    background: transparent;
}

.login-input-group .form-control {
    width: 100%;
    height: 50px;
    border: 0;
    background: transparent;
    color: #183b5b;
    font-size: 14px;
    box-shadow: none;
}

.login-input-group .form-control::placeholder {
    color: #a0afbd;
    font-size: 13px;
}

/* ==========================================
   BOTÓN INGRESAR
========================================== */

.btn-login {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #087bd1, #0755a3);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(8, 107, 190, 0.22);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover,
.btn-login:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #076dbb, #064785);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(8, 107, 190, 0.30);
}

.btn-login:active {
    transform: translateY(0);
}

/* ==========================================
   MENSAJE DE ERROR
========================================== */

.login-form-panel .alert {
    border-radius: 10px;
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 0;
}

/* ==========================================
   SEGURIDAD
========================================== */

.login-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    color: #8a9aaa;
    font-size: 12px;
}

.login-security i {
    color: #1686cb;
}

/* ==========================================
   PIE DE PÁGINA
========================================== */

.footer-login {
    flex-shrink: 0;
    padding-top: 10px;
    color: #8497a8;
    font-size: 12px;
    text-align: center;
}

/* ==========================================
   PANTALLAS DE ESCRITORIO BAJAS
========================================== */

@media (min-width: 768px) and (max-height: 700px) {

    .login-container {
        padding-top: 8px;
        padding-bottom: 5px;
    }

    .login-card {
        height: calc(100vh - 48px);
    }

    .login-form-panel {
        padding: 18px 35px;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        font-size: 21px;
    }

    .login-form-panel h2 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .login-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .login-form-panel .form-outline {
        margin-bottom: 12px !important;
    }

    .login-form-panel .form-label {
        margin-bottom: 5px;
    }

    .login-input-group .form-control {
        height: 42px;
    }

    .btn-login {
        min-height: 44px;
    }

    .login-security {
        margin-top: 12px;
        padding-top: 9px;
    }

    .image-content {
        left: 25px;
        right: 22px;
        bottom: 24px;
    }

    .water-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        font-size: 19px;
    }

    .image-content h1 {
        font-size: 25px;
    }

    .image-content p {
        font-size: 12px;
    }

    .footer-login {
        padding-top: 5px;
        font-size: 11px;
    }
}

/* ==========================================
   TABLETAS
========================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .login-card {
        grid-template-columns: 1fr 1fr;
    }

    .login-form-panel {
        padding-left: 25px;
        padding-right: 25px;
    }

    .login-form-panel h2 {
        font-size: 27px;
    }

    .image-content {
        left: 22px;
        right: 20px;
    }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 767px) {

    .login-container {
        height: auto;
        min-height: 100vh;
        padding: 15px;
        overflow: visible;
    }

    .login-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 460px;
        height: auto;
        max-height: none;
        min-height: 0;
        border-radius: 20px;
    }

    .login-image-panel {
        position: relative;
        min-height: 200px;
        height: 200px;
        flex-shrink: 0;
    }

    .login-image {
        object-position: center 45%;
    }

    .image-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 39, 83, 0.02) 10%,
            rgba(0, 39, 83, 0.78) 100%
        );
    }

    .image-content {
        left: 22px;
        right: 20px;
        bottom: 18px;
    }

    .water-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
        border-radius: 10px;
        font-size: 17px;
    }

    .image-content h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .image-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .login-form-panel {
        padding: 25px;
    }

    .brand-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 17px;
        border-radius: 13px;
        font-size: 21px;
    }

    .welcome-label {
        font-size: 10px;
    }

    .login-form-panel h2 {
        font-size: 26px;
    }

    .login-description {
        margin-bottom: 22px;
    }

    .login-form-panel .form-outline {
        margin-bottom: 17px !important;
    }

    .login-input-group .form-control {
        height: 48px;
    }

    .btn-login {
        min-height: 49px;
    }

    .login-security {
        margin-top: 23px;
        padding-top: 16px;
    }

    .footer-login {
        padding-top: 15px;
        padding-bottom: 3px;
        font-size: 11px;
    }
}

/* ==========================================
   CELULARES CON POCA ALTURA
========================================== */

@media (max-width: 767px) and (max-height: 700px) {

    .login-container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .login-image-panel {
        height: 155px;
        min-height: 155px;
    }

    .image-content {
        bottom: 12px;
    }

    .water-icon {
        display: none;
    }

    .login-form-panel {
        padding: 20px 25px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .login-description {
        margin-bottom: 16px;
    }

    .login-form-panel .form-outline {
        margin-bottom: 12px !important;
    }

    .login-security {
        margin-top: 15px;
        padding-top: 10px;
    }
}


