@import url("https://assets.soracom.io/fonts/aeonik/Aeonik.css");

html, body {
    height: 100%;
}

body {
    background-color: #FAFAFA;
    font-size: 14px;
    margin: 0;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   CONTENEDOR PRINCIPAL
   ───────────────────────────────────────── */
.container-bg-ag {
    width: 100%;
    min-height: 100vh;
    background-color: #FAFAFA;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-custom {
    background: #fff;
    min-height: 100vh;
    flex-wrap: nowrap !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ── Columna izquierda: imagen + polygon ── */
.container_login--content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    padding: 0;
}

.container-polygon-custom {
    display: flex;
    height: 100%;
    min-height: 100vh;
    align-items: flex-end;
    width: 100%;
}

.polygon-custom {
    background-color: var(--ag-color-primary, #0E79FD);
    height: 160px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 80px;
    clip-path: polygon(60px 0, 100% 0, 100% 100%, 0 100%);
}

.lbl-polygon {
    color: #fff;
    font-size: 2.4rem;
    font-feature-settings: "ss02", "ss08";
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    font-weight: 600;
    margin: 0;
}

/* ── Columna derecha: formulario ── */
.container_login--form {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    min-height: 100vh;
    padding: 24px 0 !important;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
}

.content_form {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
}

.content_logo {
    display: flex;
    justify-content: center;
}

    .content_logo img {
        max-width: 220px;
        max-height: 90px;
        height: auto;
        object-fit: contain;
    }

.content_form--form {
    margin-top: 32px;
}

.lbl-iniciar--login {
    color: var(--ag-color-primary, #0E79FD);
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.lbl-custom--login {
    color: var(--ag-color-primary, #0E79FD);
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    font-weight: 400;
    cursor: pointer;
    width: auto !important;
}

    .lbl-custom--login:hover {
        color: var(--ag-color-secundary, #154CA9);
    }

.k-label,
.content_form label {
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    font-weight: 300;
    width: 100%;
}

.mg-15 {
    margin-top: 16px;
}

.mb-lbl-5 {
    margin-bottom: 5px;
}

/* ── Botón principal ── */
.btn-login--custom {
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    font-weight: 400;
    background-color: var(--ag-color-primary, #0E79FD) !important;
    border-color: var(--ag-color-primary, #0E79FD) !important;
    color: #fff !important;
    width: 100%;
    height: 40px;
    border-radius: 50px !important;
    margin-top: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

    .btn-login--custom:hover {
        background-color: var(--ag-color-secundary, #154CA9) !important;
        border-color: var(--ag-color-secundary, #154CA9) !important;
    }

/* ── Separador "o continúa con" ── */
.separator-auth {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
}

    .separator-auth hr {
        flex: 1;
        border: none;
        border-top: 1px solid #dee2e6;
        margin: 0;
    }

    .separator-auth span {
        padding: 0 12px;
        font-size: 12px;
        color: #6c757d;
        font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    }

/* ── Contenedor de botones de SSO ── */
.auth-buttons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-version {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    color: #999a9f;
    font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
    padding-top: 24px;
}

/* Header móvil (oculto por defecto) */
.header-login {
    display: none;
}

/* ── Mobile: hasta 800px ── */
@media (max-width: 800px) {
    .container_login--content {
        display: none;
    }

    .mobile-custom {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .container_login--form {
        min-height: unset;
        justify-content: flex-start !important;
        padding-top: 20px !important;
    }

    .header-login {
        display: flex;
        height: 160px;
        background-color: var(--ag-color-primary, #0E79FD);
        align-items: center;
        justify-content: center;
    }

        .header-login h6 {
            font-size: 1.5rem;
            color: #fff;
            font-family: Aeonik, 'Source Han Sans JP', Arial, Helvetica, sans-serif;
            font-weight: 500;
            margin: 0;
        }

    .content_form {
        padding: 0 24px;
    }
}

/* ── Tablet / laptop: 801px – 1299px ── */
@media (min-width: 801px) and (max-width: 1299px) {
    .header-login {
        display: none;
    }
}

/* ── Card centrado en pantallas grandes ── */
@media screen and (min-width: 1300px) {
    .header-login {
        display: none;
    }

    .container-bg-ag {
        height: 100vh;
        background-color: #FAFAFA;
    }

    .mobile-custom {
        width: min(1366px, calc(100vw - 20px)) !important;
        height: min(768px, calc(100vh - 20px)) !important;
        min-height: unset !important;
        overflow: clip;
        box-shadow: 10px 10px 16px 0px #e1e1e1;
        border-radius: 8px;
    }

    .container_login--content {
        min-height: unset;
        height: 100%;
    }

    .container-polygon-custom {
        height: 100%;
        min-height: unset;
    }

    .container_login--form {
        min-height: unset;
        height: 100%;
    }
}

/* ── Loading ── */
.gitClass {
    display: none;
    background: transparent;
    position: fixed;
    max-width: 100%;
    z-index: 2;
    margin: 0 auto;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    top: 0;
    left: 0;
}

.loadingGif {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#divVersion {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-top: auto !important;
    padding-top: 24px !important;
    text-align: center !important;
}

/* ── Errores ── */
.error-list {
    margin-top: 12px;
    font-size: 12px;
    padding-left: 16px;
}

    .error-list li {
        color: #dc3545;
    }

/* ── Política de tratamiento ── */
.politica-trat-link {
    text-decoration: underline;
    font-size: 0.7em;
    margin-left: 5px;
    color: var(--ag-color-primary, #0E79FD);
}
