/* =========================================================
   SOYVAULT LOGIN - VERSION ESTABLE
   ========================================================= */

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

.auth-body {
    min-height: 100vh;
    box-sizing: border-box;

    display: grid;
    place-items: center;

    padding: 32px;

    background:
        radial-gradient(
            circle at 6% 15%,
            rgba(35, 201, 210, .22),
            transparent 27%
        ),
        radial-gradient(
            circle at 95% 88%,
            rgba(116, 69, 178, .18),
            transparent 30%
        ),
        #f4f7fb;
}

.auth-shell,
.auth-shell * {
    box-sizing: border-box;
}

.auth-shell {
    width: min(1240px, 100%);
    min-height: 700px;

    display: grid !important;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border: 1px solid #dbe3ec;
    border-radius: 34px;

    background: #ffffff;

    box-shadow:
        0 28px 70px rgba(20, 38, 70, .12);
}

/* PANEL IZQUIERDO */

.auth-brand {
    position: relative;

    min-width: 0;

    display: flex !important;
    flex-direction: column;
    justify-content: center;

    padding:
        150px
        68px
        70px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(39, 166, 203, .27),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #14223d 0%,
            #1c2b4c 56%,
            #3c3157 100%
        );
}

.auth-logo {
    text-decoration: none !important;
}

.auth-logo-left {
    position: absolute;

    top: 44px;
    left: 68px;

    width: 240px !important;
    height: 80px !important;

    display: block !important;

    overflow: visible !important;

    background: transparent !important;
}

.auth-logo-left img {
    width: 240px !important;
    height: 80px !important;

    max-width: 240px !important;
    max-height: 80px !important;

    display: block !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
}

.auth-brand-copy {
    width: 100%;
    max-width: 520px;

    display: grid;
    gap: 18px;
}

.auth-eyebrow {
    color: #62ded4 !important;
}

.auth-brand h1 {
    margin: 0;

    max-width: 10.5ch;

    color: #ffffff;

    font-size: clamp(3rem, 4.9vw, 4.6rem);
    line-height: 1.04;

    letter-spacing: -.05em;
}

.auth-brand p {
    margin: 4px 0 0;

    max-width: 510px;

    color: rgba(231, 239, 252, .80);

    font-size: 1rem;
    line-height: 1.7;
}

/* PANEL DERECHO */

.auth-card {
    min-width: 0;

    display: grid !important;
    place-items: center;

    padding: 58px;

    background: #ffffff;
}

.auth-card-inner {
    width: min(460px, 100%);
}

.auth-logo-right {
    width: 205px !important;
    height: 68px !important;

    margin:
        0 auto
        42px;

    display: block !important;

    overflow: visible !important;

    background: transparent !important;
}

.auth-logo-right img {
    width: 205px !important;
    height: 68px !important;

    max-width: 205px !important;
    max-height: 68px !important;

    display: block !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: none !important;
}

/* TITULO */

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading .eyebrow {
    color: #0a7c6b;
}

.auth-heading h2 {
    margin: 7px 0 8px;

    color: #142033;

    font-size: clamp(2.25rem, 3.4vw, 3.1rem);
    line-height: 1.06;

    letter-spacing: -.045em;
}

.auth-heading p {
    margin: 0;

    color: #66758b;

    line-height: 1.55;
}

/* FORMULARIO */

.auth-login-form {
    display: grid;
    gap: 19px;
}

.auth-login-form label {
    display: grid;
    gap: 8px;

    color: #142033;

    font-weight: 750;
}

.auth-login-form input {
    width: 100%;
    height: 62px;

    padding: 12px 16px;

    border: 1px solid #ccd8e8;
    border-radius: 17px;

    outline: 0;

    background: #f0f5fd;
    color: #142033;

    font: inherit;
}

.auth-login-form input:focus {
    border-color: #28b8ce;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(40, 184, 206, .13);
}

.auth-login-button {
    width: 100%;
    min-height: 62px;

    margin-top: 5px;

    border: 0;
    border-radius: 17px;

    background:
        linear-gradient(
            105deg,
            #17b7c3 0%,
            #43a8d8 52%,
            #6742a5 100%
        );

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 16px 34px rgba(48, 142, 193, .20);
}

.auth-links {
    display: flex;

    margin-top: 22px;

    font-size: .9rem;
}

.auth-links-single {
    justify-content: flex-start;
}

.auth-links a {
    color: #0a7c6b;

    font-weight: 650;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .auth-body {
        padding: 18px;
    }

    .auth-shell {
        grid-template-columns: .9fr 1.1fr;
    }

    .auth-brand {
        padding:
            135px
            42px
            54px;
    }

    .auth-logo-left {
        left: 42px;
    }

    .auth-card {
        padding: 42px;
    }
}

@media (max-width: 760px) {

    .auth-body {
        display: block;

        padding: 0;

        background: #ffffff;
    }

    .auth-shell {
        width: 100%;
        min-height: 100vh;

        display: block !important;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .auth-brand {
        display: none !important;
    }

    .auth-card {
        min-height: 100vh;

        padding: 34px 22px;
    }

    .auth-logo-right {
        margin-bottom: 36px;
    }
}


/* =========================================================
   SOYVAULT - PALETA SIN MARCO
   Solo cambia colores de fondo para favorecer el logo.
   ========================================================= */

/* Panel izquierdo: azul claro/medio para que el navy del logo contraste */
.auth-brand {
    background:
        linear-gradient(
            180deg,
            #A9C8E4 0%,
            #7FA6C9 100%
        ) !important;

    color: #10233F !important;
}

/* Texto grande oscuro porque el fondo ahora es claro */
.auth-brand h1 {
    color: #10233F !important;
}

.auth-brand p {
    color: #243B5A !important;
}

.auth-eyebrow,
.auth-brand .eyebrow {
    color: #087F8C !important;
}

/* Panel derecho muy claro */
.auth-card {
    background: #F7FAFD !important;
}

/* Logo izquierdo: SIN CAJA, SIN BORDE, SIN FONDO */
.auth-logo-left {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Logo derecho: SIN CAJA */
.auth-logo-right {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.auth-logo-left img,
.auth-logo-right img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Campos y botón se mantienen en la misma línea visual */
.auth-login-form input {
    background: #EEF4FA !important;
}

.auth-login-button {
    background:
        linear-gradient(
            105deg,
            #11B8C3 0%,
            #3FA7D5 52%,
            #5B4AB3 100%
        ) !important;
}
