/* =========================================================
   GEOGESTOR - INICIO DE SESIÓN
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #f4f7fb;
}

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

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.brand-panel,
.login-panel {
    min-width: 0;
}

/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.brand-panel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;

    background:
        linear-gradient(
            rgba(6, 71, 150, 0.48),
            rgba(3, 42, 91, 0.72)
        ),
        url("../imagenes/fondo-muni.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brand-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 40% 15%,
            rgba(50, 145, 235, 0.10),
            transparent 40%
        );

    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 680px;
    margin: auto;
    text-align: center;
    flex-shrink: 0;
}

/* =========================================================
   LOGO MUNICIPAL
========================================================= */

.municipal-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.municipal-logo {
    display: block;
    width: 570px;
    max-width: 90%;
    height: 315px;
    object-fit: contain;
    filter: drop-shadow(0 7px 15px rgba(0, 0, 0, 0.13));
}

/* =========================================================
   LÍNEA DORADA
========================================================= */

.gold-line {
    width: 370px;
    max-width: 75%;
    height: 3px;
    margin: 5px auto 20px;
    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dca427,
            #f0ba3e,
            #dca427,
            transparent
        );
}

/* =========================================================
   IDENTIDAD DEL PROYECTO
========================================================= */

.project-info h1 {
    margin: 0;
    color: #ffffff;
    font-size: 78px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.project-info h1 span {
    color: #e1a62a;
}

.project-description {
    margin: 17px 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
}

.project-location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 18px;
}

.project-location span {
    min-width: 0;
    overflow-wrap: break-word;
}

.project-location svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    fill: none;
    stroke: #f0ad18;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   COPYRIGHT
========================================================= */

.brand-footer {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    padding-top: 13px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.brand-footer p {
    margin: 3px 0;
}

/* =========================================================
   PANEL DERECHO
========================================================= */

.login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 45px;
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #fafbfd 55%,
            #eef2f7 100%
        );
}

.login-wrapper {
    width: 100%;
    max-width: 600px;
    min-width: 0;
}

/* =========================================================
   TARJETA
========================================================= */

.login-card {
    width: 100%;
    padding: 32px 38px 28px;
    border: 1px solid #d8e0e9;
    border-bottom: 4px solid #d7a12c;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 42, 75, 0.10);
}

.login-card form {
    margin: 0;
}

/* =========================================================
   CANDADO
========================================================= */

.lock-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #09449d;
    background: #eaf1fc;
}

.lock-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   ENCABEZADO
========================================================= */

.login-header {
    margin-bottom: 23px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    color: #08388c;
    font-size: 45px;
    line-height: 1.1;
    font-weight: 800;
}

.login-header p {
    margin: 9px 0 0;
    color: #687a98;
    font-size: 17px;
    line-height: 1.4;
}

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

.login-error {
    margin-bottom: 17px;
    padding: 11px 14px;
    border: 1px solid #edc1c1;
    border-radius: 8px;
    background: #fff1f1;
    color: #9a3131;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

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

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #082d62;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.input-container {
    width: 100%;
    height: 59px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cad6e5;
    border-radius: 9px;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-container:focus-within {
    border-color: #0c4c9c;
    box-shadow: 0 0 0 3px rgba(12, 76, 156, 0.07);
}

.field-icon {
    width: 57px;
    min-width: 57px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #60799c;
}

.field-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-container input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 7px;
    border: none;
    outline: none;
    background: transparent;
    color: #233e63;
    font-family: inherit;
    font-size: 16px;
}

.input-container input::placeholder {
    color: #95a5ba;
}

/* =========================================================
   MOSTRAR CONTRASEÑA
========================================================= */

.eye-button {
    width: 56px;
    flex-shrink: 0;
    height: 100%;
    padding: 0;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: #60799c;
    cursor: pointer;
}

.eye-button:hover {
    color: #084595;
}

.eye-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   OPCIONES
========================================================= */

.login-options {
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #263f64;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: #084598;
}

.forgot-link {
    color: #074ca9;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

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

/* =========================================================
   BOTÓN INICIAR SESIÓN
========================================================= */

.login-button {
    width: 100%;
    height: 60px;
    padding: 0 16px;
    border: none;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #083c90,
            #0647a1,
            #083c90
        );

    font-family: inherit;
    font-size: 18px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(5, 58, 134, 0.16);
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 58, 134, 0.22);
}

.login-button svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   SEPARADOR Y SOLICITUD DE ACCESO
========================================================= */

.separator {
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.separator span {
    flex: 1;
    height: 1px;
    background: #dce4ed;
}

.separator small {
    color: #203f6c;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.no-account {
    margin: 0 0 13px;
    text-align: center;
    color: #38547b;
    font-size: 16px;
    line-height: 1.4;
}

.access-button {
    width: 100%;
    height: 57px;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid #bdcde1;
    border-radius: 9px;
    background: #ffffff;
    color: #094ca8;
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
    transition: .2s ease;
}

.access-button:hover {
    border-color: #0d55a7;
    background: #f4f8ff;
    transform: translateY(-1px);
}

.access-button svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   INFORMACIÓN DE SEGURIDAD
========================================================= */

.security-info {
    margin-top: 20px;
    text-align: center;
}

.security-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #193d70;
    font-size: 15px;
    line-height: 1.4;
}

.security-title svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    fill: none;
    stroke: #174b91;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-info p {
    margin: 7px 0 0;
    color: #6a7e9c;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================================
   PANTALLAS MEDIANAS
========================================================= */

@media (max-width: 1200px) {
    .municipal-logo {
        width: 470px;
        height: 270px;
    }

    .project-info h1 {
        font-size: 62px;
    }

    .project-description {
        font-size: 19px;
    }

    .project-location {
        font-size: 15px;
    }
}

/* =========================================================
   ESCRITORIO: AJUSTE SEGÚN LA ALTURA DISPONIBLE

   Mantiene las dos columnas y reduce espacios verticales.
   No establece alturas fijas ni oculta el contenido.
========================================================= */

@media (min-width: 851px) and (max-height: 950px) {
    .brand-panel {
        padding: 18px 32px;
    }

    .municipal-logo {
        width: 520px;
        height: clamp(180px, 28vh, 270px);
    }

    .gold-line {
        margin: 5px auto 16px;
    }

    .project-info h1 {
        font-size: clamp(48px, 8vh, 70px);
    }

    .project-description {
        margin: 13px 0;
        font-size: clamp(18px, 2.5vh, 22px);
    }

    .project-location {
        font-size: 16px;
    }

    .brand-footer {
        padding-top: 10px;
        font-size: 12px;
    }

    .login-panel {
        padding: 18px 32px;
    }

    .login-card {
        padding: 24px 32px 22px;
    }

    .lock-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }

    .lock-icon svg {
        width: 32px;
        height: 32px;
    }

    .login-header {
        margin-bottom: 18px;
    }

    .login-header h2 {
        font-size: 38px;
    }

    .login-header p {
        margin-top: 6px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        margin-bottom: 6px;
    }

    .input-container {
        height: 50px;
    }

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

    .login-button {
        height: 50px;
        font-size: 17px;
    }

    .separator {
        margin: 15px 0 11px;
    }

    .no-account {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .access-button {
        height: 48px;
        font-size: 16px;
    }

    .security-info {
        margin-top: 14px;
    }

    .security-info p {
        margin-top: 4px;
    }
}

/* =========================================================
   ESCRITORIO CON MENOR ALTURA
========================================================= */

@media (min-width: 851px) and (max-height: 740px) {
    .brand-panel {
        padding: 14px 24px;
    }

    .municipal-logo {
        height: clamp(150px, 26vh, 190px);
    }

    .gold-line {
        margin-bottom: 12px;
    }

    .project-info h1 {
        font-size: 52px;
    }

    .project-description {
        margin: 10px 0;
        font-size: 18px;
    }

    .project-location {
        font-size: 14px;
    }

    .project-location svg {
        width: 28px;
        height: 28px;
    }

    .brand-footer {
        font-size: 11px;
    }

    .login-panel {
        padding: 14px 24px;
    }

    .login-card {
        padding: 18px 26px;
        border-radius: 22px;
    }

    .lock-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 8px;
    }

    .lock-icon svg {
        width: 28px;
        height: 28px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .login-header h2 {
        font-size: 34px;
    }

    .login-header p {
        margin-top: 4px;
        font-size: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .input-container {
        height: 46px;
    }

    .login-options {
        margin-bottom: 12px;
    }

    .login-button,
    .access-button {
        height: 46px;
    }

    .separator {
        margin: 11px 0 8px;
    }

    .no-account {
        margin-bottom: 8px;
    }

    .security-info {
        margin-top: 10px;
    }

    .security-title {
        font-size: 14px;
    }

    .security-title svg {
        width: 23px;
        height: 23px;
    }

    .security-info p {
        font-size: 12px;
    }
}

/* =========================================================
   CELULAR / TABLET
========================================================= */

@media (max-width: 850px) {
    .login-page {
        display: block;
    }

    .brand-panel {
        min-height: auto;
        padding: 25px 20px 30px;
    }

    .municipal-logo {
        width: 350px;
        height: 210px;
    }

    .gold-line {
        margin: 5px auto 15px;
    }

    .project-info h1 {
        font-size: 45px;
    }

    .project-description {
        font-size: 16px;
        margin: 12px 0;
    }

    .project-location {
        font-size: 13px;
    }

    .brand-footer {
        display: none;
    }

    .login-panel {
        min-height: auto;
        padding: 30px 18px;
    }

    .login-card {
        padding: 27px 22px;
    }

    .login-header h2 {
        font-size: 35px;
    }
}

/* =========================================================
   CELULAR PEQUEÑO
========================================================= */

@media (max-width: 500px) {
    .municipal-logo {
        width: 280px;
        height: 170px;
    }

    .login-card {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .lock-icon {
        width: 75px;
        height: 75px;
    }

    .lock-icon svg {
        width: 33px;
        height: 33px;
    }
}