/**********************************************************
login-split.css — Rediseño del login de MiiCaja Gestión.
Todo scopeado bajo .login-split: no afecta ninguna otra pantalla.
Hereda los tokens de la paleta oficial (mismos valores que el
resto del rediseño); se declaran aquí para que el login sea
autocontenido (Layout = null, no carga el CSS global).
**********************************************************/

:root {
    --navy:    #111C4E;  /* azul principal — marca / textos */
    --blue:    #0071CE;  /* azul secundario — enlaces / foco */
    --teal:    #17AFA0;  /* teal — acción principal (Ingresar) / acentos */
    --ink:     #14161F;  /* negro ink — panel hero */
    --bg:      #F4F6FB;  /* fondo gris de página */
    --support: #D8D6DF;  /* gris de apoyo — bordes */
    --gray:    #909AA0;  /* gris — textos secundarios */
    --red:     #E25D5D;  /* rojo — error / validación */
}

/* Reset del body: este archivo solo se carga en el login, por lo que
   no afecta otras pantallas. Evita el borde blanco de Bootstrap. */
html, body {
    margin: 0;
    padding: 0;
}

.login-split *,
.login-split *::before,
.login-split *::after {
    box-sizing: border-box;
}

.login-split {
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-family: Outfit, "Open Sans", Helvetica, Arial, sans-serif;
    color: var(--navy);
    background: var(--bg);
}

/* ============ Panel izquierdo: formulario ============ */

.login-split .login-form-side {
    position: relative;
    flex: 0 0 35%;
    min-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    background: var(--bg);
}

/* Card blanco flotando sobre el fondo gris */
.login-split .login-form-inner {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border: 1px solid #EAECF2;
    border-radius: 16px;
    padding: 50px 44px;
    box-shadow: 0 12px 40px rgba(17, 28, 78, .10);
}

.login-split .login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

/* Logo muy apaisado (~6:1): se dimensiona por ancho con height auto
   para respetar siempre la proporción y no verse alargado. */
.login-split .login-brand img {
    width: 280px;
    max-width: 100%;
    height: auto;
}

.login-split .login-tagline {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 34px;
}

.login-split .login-welcome {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px;
}

.login-split .login-welcome-sub {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-split .field-group {
    margin-bottom: 18px;
}

.login-split .field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-split .field-control {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--support);
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}

.login-split .field-control:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 206, .12);
}

.login-split .field-control .field-icon {
    color: var(--gray);
    font-size: 15px;
    flex-shrink: 0;
}

.login-split .field-control input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 12px;
    font-size: 15px;
    color: var(--navy);
    font-family: inherit;
}

/* Autocompletar: el navegador pinta solo el <input> (no el control completo),
   dejando un parche de color. Se fuerza fondo blanco para que sea uniforme. */
.login-split .field-control input:-webkit-autofill,
.login-split .field-control input:-webkit-autofill:hover,
.login-split .field-control input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--navy);
    caret-color: var(--navy);
    transition: background-color 9999s ease-in-out 0s;
}

.login-split .field-control .toggle-pass {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--gray);
    font-size: 15px;
    padding: 4px;
    flex-shrink: 0;
}

.login-split .field-control .toggle-pass:hover {
    color: var(--blue);
}

.login-split .login-forgot {
    text-align: right;
    margin: 2px 0 0;
}

.login-split .login-forgot a {
    color: var(--blue);
    font-size: 13px;
    text-decoration: none;
}

.login-split .login-forgot a:hover {
    text-decoration: underline;
}

.login-split .btn-ingresar {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    margin-top: 22px;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}

.login-split .btn-ingresar:hover {
    background: #149487;
}

.login-split .validation-summary-errors,
.login-split .text-danger {
    color: var(--red);
    font-size: 14px;
    margin-bottom: 14px;
}

.login-split .validation-summary-errors ul {
    padding-left: 18px;
    margin-bottom: 0;
}

/* Copyright pegado al fondo del panel gris, fuera del card */
.login-split .login-foot {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 22px;
    text-align: center;
    color: var(--gray);
    font-size: 12px;
}

/* ============ Panel derecho: hero ============ */

.login-split .login-hero-side {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 60px;
    overflow: hidden;
    color: #fff;
    background-color: var(--ink);
    background-position: right -40px top 0;
    background-size: 84% auto;
    background-repeat: no-repeat;
}

/* El negro domina: oscurece el costado izquierdo (para el texto) y funde
   la foto hacia el ink arriba, abajo y donde arrancan las citas. */
.login-split .login-hero-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--ink) 6%, rgba(20, 22, 31, 0) 62%),
        linear-gradient(180deg, rgba(20, 22, 31, .55) 0%, rgba(20, 22, 31, .18) 26%, rgba(20, 22, 31, .9) 60%, var(--ink) 100%);
}

.login-split .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.login-split .hero-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 14px;
}

.login-split .hero-title-underline {
    width: 54px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin-bottom: 34px;
}

.login-split .quote-card {
    max-width: 352px;
    /* Altura fija: el card no crece ni se encoge según el largo de la cita.
       Dimensionado para citas de hasta ~3 líneas al ancho actual. */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.login-split .quote-mark {
    color: var(--teal);
    font-size: 22px;
    line-height: 1;
}

.login-split .quote-text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin: 10px 0 16px;
}

.login-split .quote-author {
    font-weight: 600;
}

.login-split .quote-role {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    margin-top: 2px;
}

.login-split .quote-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.login-split .quote-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: transparent;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.login-split .quote-dots button.active {
    background: var(--teal);
    border-color: var(--teal);
}

.login-split .hero-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 422px;
    margin-bottom: 34px;
}

.login-split .hero-note .note-icon {
    color: var(--teal);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.login-split .hero-note p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
}

.login-split .hero-note .accent {
    color: var(--teal);
}

.login-split .hero-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.login-split .hero-tile {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    /* Fuerza columnas realmente iguales: sin esto, un texto largo ensancha
       su columna y descuadra el espaciado entre los tiles. */
    min-width: 0;
}

.login-split .hero-tile .tile-icon {
    color: var(--teal);
    font-size: 20px;
    width: 22px;
    text-align: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.login-split .hero-tile span {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .9);
}

/* ============ Flujo de recuperar contraseña ============ */

/* El hero del reset usa su propio fondo (imagen de seguridad) a pantalla
   completa, en vez de la foto del login posicionada a un costado. */
.login-split .login-hero-side.hero-reset {
    background-position: center;
    background-size: cover;
}

.login-split .hero-lead {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 1.5;
}

/* Enlace "Volver a iniciar sesión" */
.login-split .login-back {
    margin-top: 18px;
    text-align: center;
}

.login-split .login-back a {
    color: var(--blue);
    font-size: 13px;
    text-decoration: none;
}

.login-split .login-back a:hover {
    text-decoration: underline;
}

/* Pantallas de confirmación (revisa tu correo / contraseña restablecida) */
.login-split .reset-message {
    text-align: center;
}

.login-split .reset-message-icon {
    color: var(--teal);
    font-size: 44px;
    margin-bottom: 18px;
}

/* ============ Responsive ============ */

@media (max-width: 991px) {
    .login-split .login-hero-side {
        display: none;
    }

    /* Sin hero, el card crece y casi llena el ancho: el gris queda
       como un margen fino en vez de dominar la pantalla. */
    .login-split .login-form-side {
        flex: 1 1 100%;
        min-width: 0;
        padding: 28px 20px;
    }

    .login-split .login-form-inner {
        max-width: 480px;
        padding: 44px 34px;
    }
}
