/* =========================================================
   AUTH — GREMIO DE GARDENIA
   Login / Registro
   ========================================================= */


/* =========================================================
   VARIABLES LOCALES
   ========================================================= */

.auth-page {
    --auth-navy-950: #07182b;
    --auth-navy-900: #0b2340;
    --auth-navy-800: #12345a;
    --auth-navy-700: #19466f;

    --auth-gold-700: #95691f;
    --auth-gold-600: #b98a3a;
    --auth-gold-500: #c99b46;
    --auth-gold-300: #f0d28a;

    --auth-paper: #fffaf0;
    --auth-paper-soft: #f5ecda;

    --auth-text: #203146;
    --auth-text-soft: #6f675b;

    --auth-border:
        rgba(176, 128, 49, 0.30);

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 1.2fr)
        minmax(420px, 0.8fr);

    background:
        var(--auth-paper);

    color:
        var(--auth-text);

    font-family:
        "Lato",
        Arial,
        sans-serif;
}


/* =========================================================
   ZONA VISUAL
   ========================================================= */

.auth-visual {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 233, 180, 0.46),
            transparent 26%
        ),
        radial-gradient(
            circle at 70% 72%,
            rgba(60, 106, 153, 0.34),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #dde9f3 0%,
            #b8cadc 32%,
            #476c93 68%,
            #132c49 100%
        );
}


/*
   Más adelante esta zona puede usar:

   background-image:
       url("../../assets/backgrounds/city_background.webp");

   sin tocar el HTML.
*/

.auth-visual::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 18, 34, 0.12),
            rgba(5, 18, 34, 0.04) 55%,
            rgba(5, 18, 34, 0.28)
        );
}

.auth-visual-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            transparent 42%,
            rgba(4, 14, 26, 0.38)
        );
}


/* =========================================================
   MARCA PROVISIONAL
   ========================================================= */

.auth-visual-brand {
    position: absolute;

    z-index: 2;

    left: 42px;
    bottom: 42px;

    display: flex;
    align-items: center;

    gap: 17px;

    color: white;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, 0.30);
}

.auth-logo-placeholder {
    width: 82px;
    height: 82px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(242, 209, 133, 0.78);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(15, 48, 82, 0.94),
            rgba(5, 20, 38, 0.98)
        );

    box-shadow:
        inset 0 0 0 5px
        rgba(255, 255, 255, 0.05),
        0 12px 30px
        rgba(0, 0, 0, 0.24);
}

.auth-logo-placeholder span {
    color:
        var(--auth-gold-300);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 2rem;
}

.auth-visual-brand p {
    margin: 0;

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 1.35rem;

    letter-spacing: 0.04em;
}


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

.auth-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        40px 52px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 247, 0.99),
            rgba(244, 236, 220, 0.99)
        );

    box-shadow:
        -18px 0 48px
        rgba(13, 34, 57, 0.13);
}

.auth-panel::before {
    content: "";

    position: absolute;

    top: 22px;
    right: 22px;
    bottom: 22px;
    left: 22px;

    pointer-events: none;

    border:
        1px solid
        rgba(176, 128, 49, 0.18);

    border-radius: 20px;
}

.auth-panel-inner {
    position: relative;

    z-index: 1;

    width: min(100%, 430px);
}


/* =========================================================
   CABECERA
   ========================================================= */

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

.auth-eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        var(--auth-gold-700);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}

.auth-header h1 {
    margin: 0;

    color:
        var(--auth-navy-950);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size:
        clamp(2.5rem, 5vw, 3.6rem);

    font-weight: 400;

    line-height: 1;
}

.auth-header p {
    margin:
        12px 0 0;

    color:
        var(--auth-text-soft);

    font-size: 0.86rem;

    line-height: 1.65;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.auth-field label {
    color:
        var(--auth-navy-900);

    font-size: 0.69rem;
    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.auth-field input {
    width: 100%;
    height: 48px;

    padding:
        0 14px;

    color:
        var(--auth-text);

    border:
        1px solid
        rgba(176, 128, 49, 0.33);

    border-radius: 10px;

    background:
        rgba(255, 253, 248, 0.92);

    font-family:
        "Lato",
        Arial,
        sans-serif;

    font-size: 0.82rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-field input:focus {
    border-color:
        var(--auth-gold-500);

    background: white;

    box-shadow:
        0 0 0 3px
        rgba(201, 155, 70, 0.11);
}


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

.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 64px;
}

.auth-password-toggle {
    position: absolute;

    top: 50%;
    right: 9px;

    transform:
        translateY(-50%);

    min-width: 42px;
    height: 32px;

    color:
        var(--auth-navy-700);

    border:
        1px solid
        rgba(28, 65, 101, 0.18);

    border-radius: 7px;

    background:
        rgba(45, 91, 139, 0.06);

    cursor: pointer;

    font-size: 0.68rem;
    font-weight: 700;
}


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

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: -2px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color:
        var(--auth-text-soft);

    cursor: pointer;

    font-size: 0.72rem;
}

.auth-remember input {
    accent-color:
        var(--auth-navy-700);
}

.auth-text-button {
    padding: 0;

    color:
        var(--auth-navy-700);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-family:
        "Lato",
        Arial,
        sans-serif;

    font-size: 0.72rem;
}

.auth-text-button:hover {
    color:
        var(--auth-gold-700);

    text-decoration: underline;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.auth-message {
    padding:
        11px 13px;

    border:
        1px solid
        rgba(29, 80, 125, 0.20);

    border-radius: 8px;

    background:
        rgba(44, 96, 144, 0.07);

    color:
        var(--auth-navy-900);

    font-size: 0.74rem;

    line-height: 1.5;
}

.auth-message.is-error {
    color: #84382f;

    border-color:
        rgba(153, 64, 53, 0.24);

    background:
        rgba(153, 64, 53, 0.07);
}

.auth-message.is-success {
    color: #416c49;

    border-color:
        rgba(62, 116, 71, 0.23);

    background:
        rgba(62, 116, 71, 0.07);
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.auth-primary-button {
    width: 100%;

    min-height: 48px;

    margin-top: 2px;
    padding:
        11px 20px;

    color:
        var(--auth-gold-300);

    border:
        1px solid
        var(--auth-gold-600);

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            var(--auth-navy-700),
            var(--auth-navy-950)
        );

    cursor: pointer;

    box-shadow:
        0 9px 20px
        rgba(5, 25, 45, 0.16);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 0.83rem;

    letter-spacing: 0.04em;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(5, 25, 45, 0.23);
}


/* =========================================================
   DIVISOR
   ========================================================= */

.auth-divider {
    position: relative;

    margin:
        26px 0 20px;

    text-align: center;
}

.auth-divider::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    height: 1px;

    background:
        rgba(176, 128, 49, 0.22);
}

.auth-divider span {
    position: relative;

    z-index: 1;

    padding:
        0 12px;

    color:
        var(--auth-text-soft);

    background:
        var(--auth-paper-soft);

    font-size: 0.7rem;
}


/* =========================================================
   REGISTRO
   ========================================================= */

.auth-register {
    text-align: center;
}

.auth-register p {
    margin:
        0 0 11px;

    color:
        var(--auth-text-soft);

    font-size: 0.76rem;
}

.auth-secondary-button {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        10px 18px;

    color:
        var(--auth-navy-900);

    border:
        1px solid
        rgba(176, 128, 49, 0.43);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.44);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 0.8rem;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.auth-secondary-button:hover {
    transform:
        translateY(-1px);

    border-color:
        var(--auth-gold-500);

    background:
        rgba(255, 255, 255, 0.76);
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    margin-top: 30px;

    text-align: center;
}

.auth-footer a {
    color:
        var(--auth-navy-700);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 0.73rem;

    text-decoration: none;
}

.auth-footer a:hover {
    color:
        var(--auth-gold-700);

    text-decoration: underline;
}


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

@media (max-width: 980px) {

    .auth-page {
        grid-template-columns:
            0.8fr 1fr;
    }

    .auth-panel {
        padding:
            34px;
    }

    .auth-visual-brand {
        left: 28px;
        bottom: 28px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    .auth-page {
        display: block;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-visual-brand {
        left: 22px;
        bottom: 22px;
    }

    .auth-logo-placeholder {
        width: 62px;
        height: 62px;
    }

    .auth-visual-brand p {
        font-size: 1rem;
    }

    .auth-panel {
        min-height:
            calc(100vh - 220px);

        padding:
            34px 22px;
    }

    .auth-panel::before {
        inset: 10px;
    }

    .auth-options {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .auth-visual {
        min-height: 175px;
    }

    .auth-visual-brand {
        left: 18px;
        bottom: 18px;
    }

    .auth-panel {
        min-height:
            calc(100vh - 175px);
    }

    .auth-header h1 {
        font-size: 2.3rem;
    }

}
.auth-inline-button{margin-left:.65rem;border:1px solid currentColor;background:transparent;border-radius:6px;padding:.25rem .55rem;cursor:pointer;font:inherit;color:inherit}


/* =========================================================
   HOMOLOGACIÓN VISUAL — GARDENIA 2026-08
   ========================================================= */

.auth-page {
    grid-template-columns:
        minmax(0, 1.28fr)
        minmax(410px, .72fr);
}

.auth-visual {
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 16, 29, .10) 0%,
            rgba(5, 16, 29, .18) 56%,
            rgba(5, 16, 29, .56) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 17, 31, .04) 0%,
            rgba(5, 17, 31, .13) 58%,
            rgba(5, 17, 31, .58) 100%
        ),
        url("../../assets/backgrounds/auth_guild_hall.webp");

    background-position:
        center center;

    background-size:
        cover;

    background-repeat:
        no-repeat;
}

.auth-visual::before {
    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(246, 211, 137, .15),
            transparent 31%
        ),
        linear-gradient(
            90deg,
            rgba(5, 16, 29, .08),
            rgba(5, 16, 29, .02) 55%,
            rgba(5, 16, 29, .30)
        );
}

.auth-visual-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(7, 24, 43, .04),
            transparent 48%,
            rgba(4, 14, 26, .48)
        );
}

.auth-visual-brand {
    left: 46px;
    bottom: 38px;
    gap: 15px;
    padding: 12px 18px 12px 12px;

    border:
        1px solid
        rgba(237, 199, 116, .34);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(6, 22, 39, .80),
            rgba(9, 35, 59, .62)
        );

    backdrop-filter:
        blur(7px);

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, .22);
}

.auth-logo-placeholder {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-logo-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(
            0 8px 14px
            rgba(0, 0, 0, .26)
        );
}

.auth-visual-brand p {
    max-width: 190px;
    color: #fff8e8;
    font-size: 1.22rem;
    line-height: 1.22;
}

.auth-panel {
    padding:
        44px 54px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 252, 245, .985),
            rgba(244, 236, 218, .992)
        );
}

.auth-panel::after {
    content: "✦";
    position: absolute;
    top: 38px;
    right: 42px;
    color:
        rgba(176, 128, 49, .46);
    font-size: 1.05rem;
}

.auth-header h1 {
    letter-spacing: -.015em;
}

.auth-primary-button,
.auth-secondary-button {
    border-radius: 8px;
}

.auth-primary-button {
    border:
        1px solid
        rgba(218, 178, 91, .70);

    background:
        linear-gradient(
            180deg,
            #163e68,
            #0b2746
        );

    box-shadow:
        0 8px 18px
        rgba(7, 26, 47, .15);
}

.auth-primary-button:hover {
    background:
        linear-gradient(
            180deg,
            #1d507f,
            #103357
        );
}

@media (max-width: 900px) {
    .auth-page {
        display: block;
        min-height: 100vh;

        background-image:
            linear-gradient(
                180deg,
                rgba(5, 20, 36, .52),
                rgba(5, 20, 36, .72)
            ),
            url("../../assets/backgrounds/auth_guild_hall.webp");

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

    .auth-visual {
        min-height: 250px;
        background-image: none;
        background: transparent;
    }

    .auth-visual-brand {
        left: 22px;
        right: 22px;
        bottom: 18px;
        width: fit-content;
        max-width: calc(100% - 44px);
    }

    .auth-panel {
        min-height: calc(100vh - 250px);
        padding: 34px 20px 46px;
        border-radius: 26px 26px 0 0;
        box-shadow:
            0 -16px 42px
            rgba(4, 14, 26, .20);
    }
}

@media (max-width: 520px) {
    .auth-visual {
        min-height: 205px;
    }

    .auth-logo-placeholder {
        width: 68px;
        height: 68px;
    }

    .auth-visual-brand {
        padding: 8px 12px 8px 8px;
    }

    .auth-visual-brand p {
        font-size: 1rem;
    }

    .auth-panel {
        min-height: calc(100vh - 205px);
    }
}

/* =========================================================
   AUTH v1.1 — AJUSTE VISUAL FINAL
   - Marca más grande
   - Tarjeta translúcida tipo papel cebolla
   - Mejor adaptación de escritorio / móvil
   ========================================================= */

.auth-visual-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 250, 237, .018) 0,
            rgba(255, 250, 237, .018) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(
            115deg,
            rgba(255, 248, 229, .08) 0%,
            rgba(255, 248, 229, .025) 42%,
            rgba(255, 248, 229, .00) 72%
        );

    box-shadow:
        inset 0 0 120px rgba(6, 20, 35, .20);
}

.auth-visual-brand {
    left: 44px;
    bottom: 38px;

    width: min(390px, calc(100% - 88px));
    min-height: 150px;

    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
    gap: 20px;

    padding: 16px 24px 16px 18px;

    border:
        1px solid
        rgba(184, 132, 43, .58);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 250, 236, .92),
            rgba(239, 225, 195, .82)
        );

    color: var(--auth-navy-950);

    backdrop-filter: blur(10px) saturate(.88);
    -webkit-backdrop-filter: blur(10px) saturate(.88);

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .28),
        inset 0 0 0 1px rgba(255, 255, 255, .50);

    text-shadow: none;
}

.auth-visual-brand::after {
    content: "";
    position: absolute;
    left: 156px;
    right: 24px;
    bottom: 30px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(160, 112, 34, .66),
            rgba(160, 112, 34, 0)
        );
}

.auth-logo-placeholder {
    width: 132px;
    height: 132px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-logo-placeholder img {
    width: 118px;
    height: 118px;
    object-fit: contain;

    filter:
        drop-shadow(0 9px 13px rgba(71, 45, 10, .22));
}

.auth-visual-brand p {
    position: relative;
    z-index: 1;

    max-width: none;
    margin: 0 0 15px;

    color: var(--auth-navy-950);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 1.65rem;
    line-height: 1.18;
    letter-spacing: .025em;
}

.auth-visual-brand p::before {
    content: "PORTAL DEL AVENTURERO";
    display: block;
    margin-bottom: 7px;

    color: var(--auth-gold-700);

    font-family:
        "Lato",
        Arial,
        sans-serif;

    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .16em;
}

/* En pantallas anchas damos algo más de presencia a la escena. */
@media (min-width: 1250px) {
    .auth-page {
        grid-template-columns:
            minmax(620px, 1.35fr)
            minmax(440px, .65fr);
    }

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

@media (max-width: 900px) {
    .auth-visual-brand {
        left: 50%;
        right: auto;
        bottom: 18px;
        transform: translateX(-50%);

        width: min(520px, calc(100% - 32px));
        min-height: 110px;

        grid-template-columns: 92px 1fr;
        gap: 14px;

        padding: 10px 18px 10px 12px;
    }

    .auth-logo-placeholder {
        width: 92px;
        height: 92px;
    }

    .auth-logo-placeholder img {
        width: 84px;
        height: 84px;
    }

    .auth-visual-brand p {
        margin-bottom: 11px;
        font-size: 1.34rem;
    }

    .auth-visual-brand::after {
        left: 118px;
        bottom: 20px;
    }
}

@media (max-width: 520px) {
    .auth-visual {
        min-height: 225px;
    }

    .auth-visual-brand {
        min-height: 92px;
        grid-template-columns: 76px 1fr;
        gap: 10px;
        border-radius: 14px;
    }

    .auth-logo-placeholder {
        width: 76px;
        height: 76px;
    }

    .auth-logo-placeholder img {
        width: 70px;
        height: 70px;
    }

    .auth-visual-brand p {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }

    .auth-visual-brand p::before {
        font-size: .54rem;
        letter-spacing: .12em;
    }

    .auth-visual-brand::after {
        left: 98px;
        right: 16px;
        bottom: 16px;
    }

    .auth-panel {
        min-height: calc(100vh - 225px);
    }
}

/* =========================================================
   AUTH v1.2 — COMPOSICIÓN RESPONSIVA / PAPEL CEBOLLA
   Mantiene el lenguaje Gardenia y evita que la escena se
   pierda por recortes agresivos de background-size: cover.
   ========================================================= */

.auth-visual {
    isolation: isolate;
    background: #0b2038;
}

.auth-visual-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Dominic y el tablón quedan dentro del encuadre útil. */
    object-position: 24% center;
    filter: saturate(.94) contrast(.98) brightness(.88);
}

/* Papel cebolla cálido sobre la escena: conserva detalle pero
   la acerca a los marfiles y dorados del Portal. */
.auth-visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg,
            rgba(255, 248, 226, .16) 0%,
            rgba(255, 248, 226, .07) 36%,
            rgba(12, 31, 52, .08) 64%,
            rgba(7, 23, 41, .46) 100%),
        repeating-linear-gradient(0deg,
            rgba(255, 252, 238, .018) 0,
            rgba(255, 252, 238, .018) 1px,
            transparent 1px,
            transparent 4px);
    box-shadow: inset -70px 0 90px rgba(5, 18, 32, .18);
}

.auth-visual::before,
.auth-visual-overlay {
    z-index: 2;
}

.auth-visual-overlay {
    pointer-events: none;
    background:
        radial-gradient(circle at 23% 76%, rgba(230, 189, 105, .11), transparent 27%),
        linear-gradient(180deg, rgba(4, 14, 25, .02), rgba(4, 14, 25, .20));
}

/* Marca: sello grande y ceremonial en vez de una plaquita pequeña. */
.auth-visual-brand {
    z-index: 3;
    top: 34px;
    left: 34px;
    bottom: auto;
    width: 286px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(209, 164, 76, .58);
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 250, 235, .86), rgba(238, 221, 186, .76));
    color: var(--auth-navy-950);
    backdrop-filter: blur(7px) saturate(.82);
    -webkit-backdrop-filter: blur(7px) saturate(.82);
    box-shadow:
        0 18px 45px rgba(3, 13, 24, .25),
        inset 0 0 0 1px rgba(255,255,255,.42);
    text-align: center;
}

.auth-visual-brand::before,
.auth-visual-brand::after {
    content: "";
    display: block;
    position: static;
    width: 72%;
    height: 1px;
    margin: 6px auto;
    background: linear-gradient(90deg, transparent, rgba(153, 105, 31, .66), transparent);
}

.auth-logo-placeholder {
    width: 184px;
    height: 184px;
    margin: -2px auto 0;
}

.auth-logo-placeholder img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(72, 43, 8, .24));
}

.auth-visual-brand p {
    margin: 2px 0 0;
    color: #0a2947;
    font-size: 1.48rem;
    line-height: 1.12;
    letter-spacing: .025em;
}

.auth-visual-brand p::before {
    content: "PORTAL DEL AVENTURERO";
    margin-bottom: 7px;
    color: #9a681d;
    font-size: .60rem;
    letter-spacing: .17em;
}

/* Panel: un poco más de color Gardenia, menos blanco genérico. */
.auth-panel {
    background:
        radial-gradient(circle at 93% 8%, rgba(207, 166, 77, .10), transparent 22%),
        linear-gradient(180deg, #fffaf0 0%, #f3e8d3 100%);
    border-left: 1px solid rgba(190, 143, 56, .30);
}

.auth-panel::before {
    border-color: rgba(178, 126, 38, .28);
    box-shadow: inset 0 0 38px rgba(192, 149, 66, .035);
}

.auth-header h1 {
    color: #092945;
}

.auth-header p,
.auth-register p,
.auth-footer a {
    color: #655b4d;
}

.auth-field input {
    background: rgba(255, 251, 242, .92);
    border-color: rgba(170, 119, 35, .38);
}

.auth-primary-button {
    border-radius: 5px;
    background: linear-gradient(180deg, #174e79, #0b2b4b);
}

.auth-secondary-button,
.auth-password-toggle {
    border-radius: 5px;
}

/* Escritorio muy ancho: mostramos más escena sin hacer gigante el formulario. */
@media (min-width: 1500px) {
    .auth-page {
        grid-template-columns: minmax(0, 1.46fr) minmax(470px, .54fr);
    }

    .auth-visual-image {
        object-position: 27% center;
    }

    .auth-visual-brand {
        width: 310px;
        top: 38px;
        left: 38px;
    }

    .auth-logo-placeholder {
        width: 198px;
        height: 198px;
    }

    .auth-logo-placeholder img {
        width: 190px;
        height: 190px;
    }
}

/* Pantallas medianas: mantenemos a Dominic y el tablón visibles. */
@media (max-width: 1180px) and (min-width: 901px) {
    .auth-page {
        grid-template-columns: minmax(0, 1fr) minmax(410px, .82fr);
    }

    .auth-visual-image {
        object-position: 20% center;
    }

    .auth-visual-brand {
        width: 236px;
        top: 24px;
        left: 24px;
        padding: 15px 16px 14px;
    }

    .auth-logo-placeholder {
        width: 142px;
        height: 142px;
    }

    .auth-logo-placeholder img {
        width: 136px;
        height: 136px;
    }

    .auth-visual-brand p {
        font-size: 1.25rem;
    }
}

/* Tablet/móvil: la imagen vuelve a ser una cabecera panorámica y
   escogemos un encuadre que preserve a Dominic y el tablón. */
@media (max-width: 900px) {
    .auth-page {
        display: block;
        background: #f3e8d3;
    }

    .auth-visual {
        min-height: clamp(290px, 48vw, 420px);
        background: #0b2038;
    }

    .auth-visual-image {
        display: block;
        object-position: 27% 48%;
    }

    .auth-visual-brand {
        top: auto;
        left: 18px;
        right: auto;
        bottom: 18px;
        transform: none;
        width: 220px;
        min-height: 0;
        display: grid;
        grid-template-columns: 78px 1fr;
        gap: 10px;
        padding: 9px 13px 9px 9px;
        text-align: left;
    }

    .auth-visual-brand::before,
    .auth-visual-brand::after {
        display: none;
    }

    .auth-logo-placeholder {
        width: 78px;
        height: 78px;
        margin: 0;
    }

    .auth-logo-placeholder img {
        width: 74px;
        height: 74px;
    }

    .auth-visual-brand p {
        margin: 0;
        font-size: 1.05rem;
    }

    .auth-visual-brand p::before {
        font-size: .48rem;
        letter-spacing: .11em;
    }

    .auth-panel {
        min-height: auto;
        padding: 34px 20px 48px;
        border-left: 0;
        border-top: 1px solid rgba(190,143,56,.34);
        border-radius: 0;
        box-shadow: 0 -12px 38px rgba(5, 20, 36, .19);
    }
}

@media (max-width: 560px) {
    .auth-visual {
        min-height: 270px;
    }

    .auth-visual-image {
        /* En teléfonos el recorte horizontal es más fuerte. */
        object-position: 31% 50%;
    }

    .auth-visual-brand {
        width: 190px;
        left: 12px;
        bottom: 12px;
        grid-template-columns: 64px 1fr;
        padding: 7px 10px 7px 7px;
    }

    .auth-logo-placeholder {
        width: 64px;
        height: 64px;
    }

    .auth-logo-placeholder img {
        width: 61px;
        height: 61px;
    }

    .auth-visual-brand p {
        font-size: .94rem;
    }

    .auth-panel {
        padding: 28px 15px 38px;
    }
}

/* =========================================================
   AUTH v1.3 — COMPOSICIÓN LIMPIA
   Se elimina la placa/logotipo flotante para dejar que la
   recepción y el tablón del Gremio sean la identidad visual.
   ========================================================= */

.auth-visual-brand,
.auth-logo-placeholder {
    display: none !important;
}

.auth-visual {
    background: #0b1e2f;
}

.auth-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 47% 50%;
    filter: saturate(.93) contrast(1.02) brightness(.92);
}

.auth-visual-overlay {
    background:
        linear-gradient(90deg,
            rgba(5, 18, 31, .18) 0%,
            rgba(5, 18, 31, .05) 55%,
            rgba(5, 18, 31, .22) 100%),
        linear-gradient(180deg,
            rgba(4, 14, 24, .08) 0%,
            rgba(4, 14, 24, .02) 58%,
            rgba(4, 14, 24, .24) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* El panel conserva marfil/dorado, pero con azul Gardenia
   más presente y menos tono amarillento. */
.auth-panel {
    background:
        linear-gradient(180deg,
            rgba(252, 249, 241, .995),
            rgba(247, 242, 230, .995));
}

.auth-panel-inner {
    border-color: rgba(184, 141, 58, .30);
    box-shadow:
        0 18px 52px rgba(8, 29, 49, .09),
        inset 0 0 0 1px rgba(255,255,255,.55);
}

.auth-header h1 {
    color: #0d3153;
}

.auth-eyebrow,
.auth-kicker {
    color: #9a6b20;
}

.auth-form input {
    background: rgba(255, 253, 248, .95);
    border-color: rgba(170, 132, 67, .34);
}

.auth-form input:focus {
    border-color: #b8862f;
    box-shadow: 0 0 0 3px rgba(184, 134, 47, .12);
}

.auth-submit,
.auth-primary-button {
    background: linear-gradient(180deg, #174b78, #0d3153);
    border-color: #b88932;
    color: #f8e6b0;
}

.auth-submit:hover,
.auth-primary-button:hover {
    background: linear-gradient(180deg, #1e5e93, #123d65);
}

@media (min-width: 1180px) {
    .auth-visual-image {
        object-position: 44% 50%;
    }
}

@media (max-width: 1180px) and (min-width: 821px) {
    .auth-visual-image {
        object-position: 40% 50%;
    }
}

@media (max-width: 820px) {
    .auth-visual {
        min-height: 34vh;
        max-height: 390px;
    }

    .auth-visual-image {
        object-position: 38% 45%;
    }

    .auth-visual-overlay {
        background: linear-gradient(180deg,
            rgba(5,18,31,.02) 0%,
            rgba(5,18,31,.08) 65%,
            rgba(5,18,31,.28) 100%);
    }
}

@media (max-width: 560px) {
    .auth-visual {
        min-height: 250px;
        max-height: 300px;
    }

    .auth-visual-image {
        object-position: 31% 46%;
    }
}
