/**
 * RichMind — Login / registro en landing (mockup 2: tarjeta oscura, borde neón, OAuth 2×2).
 * Cargado solo en login.html; anula el aspecto claro de .modal-card / .auth-form genéricos.
 */
:root {
    --rlm-bg: #070a0f;
    --rlm-bg-mid: #0c1018;
    --rlm-ink: #ffffff;
    --rlm-dim: #9ca3af;
    --rlm-dim-2: #6b7280;
    --rlm-line: #2d3642;
    --rlm-neon: #2ecc71;
    --rlm-neon-2: #22c55e;
    --rlm-mind-gold: #e8b923;
    --rlm-facebook: #1877f2;
    --rlm-facebook-bg: #0b1633;
    --rlm-ms: #0c2d5c;
    --rlm-gold-1: #fff1a3;
    --rlm-gold-2: #facc15;
    --rlm-gold-3: #d97706;
    --rlm-gold-4: #92400e;
}

/* Solo opacidad: transform en la tarjeta rompía el scroll/clip con overflow (campos bajo "o con correo"). */
@keyframes rlm-card-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes rlm-card-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Velo: mismo patrón que el resto de auth (app.css) */
body.auth-page--landing.auth-show-login .auth-modal-backdrop:not([hidden]),
body.auth-page--landing.auth-show-register .auth-modal-backdrop:not([hidden]) {
    backdrop-filter: blur(15px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(15px) saturate(1.08) !important;
}

/* Contenedor del modal: centrado, sin strip lateral */
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer {
    position: fixed;
    inset: 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: max(20px, env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px))
        max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer.open,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer.open {
    z-index: 3600;
    /* body.auth-modal-open bloquea scroll: si la tarjeta y el scroll fallan, el panel puede desplazarse. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer .expense-edit-drawer__scrim,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer .expense-edit-drawer__scrim {
    position: absolute;
    inset: 0;
    flex: none;
    min-width: 0;
    align-self: stretch;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop,
body.auth-page--landing #authRegisterDrawer.modal-backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Tarjeta principal */
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer .expense-edit-drawer__panel.modal-card,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer .expense-edit-drawer__panel.modal-card {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    /* Refuerzo: anula regla #auth 720px / 100vh del drawer en app.css */
    width: min(100vw - 32px, 400px) !important;
    max-width: 400px !important;
    height: auto !important;
    min-height: 0 !important;
    /* Registro: tope; login se pisa con bloque #authLoginDrawer #auth-login (más alto) */
    max-height: min(99vh, 1240px) !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    transform: none !important;
    background: linear-gradient(165deg, var(--rlm-bg-mid) 0%, var(--rlm-bg) 55%, #05060a 100%);
    border: 1px solid color-mix(in srgb, var(--rlm-neon) 45%, #0f1f18);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--rlm-neon) 32%, rgba(0, 0, 0, 0.4)),
        0 0 24px color-mix(in srgb, var(--rlm-neon) 22%, transparent),
        0 0 64px color-mix(in srgb, var(--rlm-neon) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 28px 72px rgba(0, 0, 0, 0.82);
    /* Scroll en esta capa: ya sin transform; ver también #authLoginDrawer #auth-login .rlm2 */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* Registro más ancho que login */
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer .expense-edit-drawer__panel.modal-card,
body.auth-page--landing #authRegisterDrawer .auth-register-panel__inner.auth-login-shell {
    width: min(100vw - 32px, 480px) !important;
    max-width: 480px !important;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer .expense-edit-drawer__panel.modal-card,
body.auth-page--landing #authLoginDrawer #auth-login.auth-login-shell {
    width: min(100vw - 32px, 480px) !important;
    max-width: 480px !important;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer.open > .expense-edit-drawer__panel.modal-card,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer.open > .expense-edit-drawer__panel.modal-card {
    animation: rlm-card-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer.open.is-closing > .expense-edit-drawer__panel.modal-card,
body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer.open.is-closing > .expense-edit-drawer__panel.modal-card {
    animation: rlm-card-out 0.32s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}
@media (prefers-reduced-motion: reduce) {
    body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer.open > .expense-edit-drawer__panel.modal-card,
    body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer.open > .expense-edit-drawer__panel.modal-card {
        animation: none !important;
        transform: none !important;
    }
    body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer.open.is-closing > .expense-edit-drawer__panel.modal-card,
    body.auth-page--landing #authRegisterDrawer.modal-backdrop--drawer.open.is-closing > .expense-edit-drawer__panel.modal-card {
        animation: none !important;
    }
}

/*
 * Mismo nodo: section = .modal-card + .auth-login-shell. Antes: width:100% = ancho del
 * #authLoginDrawer (toda la pantalla) y fondo transparente = sin tarjeta visible.
 */
body.auth-page--landing #authLoginDrawer #auth-login.auth-login-shell,
body.auth-page--landing #authRegisterDrawer .auth-register-panel__inner.auth-login-shell {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: min(99vh, 1240px) !important;
    transform: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: none !important;
}

/* Login: tope alto sin min-height enorme (si el <form> no se renderizaba, quedaba un bloque negro vacío) */
body.auth-page--landing #authLoginDrawer.modal-backdrop--drawer .expense-edit-drawer__panel#auth-login.modal-card,
body.auth-page--landing #authLoginDrawer #auth-login.auth-login-shell {
    min-height: 0 !important;
    max-height: min(99vh, 1240px) !important;
}

body.auth-page--landing #authLoginDrawer #auth-login .rlm2 {
    min-height: 0 !important;
    padding-bottom: 32px !important;
}

/* Cerrar */
body.auth-page--landing #authLoginDrawer .rlm2__close,
body.auth-page--landing #authRegisterDrawer .rlm2__close {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 18, 17, 0.85);
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
body.auth-page--landing #authRegisterDrawer .rlm2__close--start {
    left: 12px;
    right: auto;
}
body.auth-page--landing #authLoginDrawer .rlm2__close:hover,
body.auth-page--landing #authRegisterDrawer .rlm2__close:hover {
    background: rgba(30, 35, 33, 0.95);
    color: #fff;
}

/* Contenido */
/* Contenido: sin max-height/scroll aquí — el scroll queda en #auth-login (arriba) para no clippear el <form> */
body.auth-page--landing .rlm2 {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 40px 32px 28px;
    color: var(--rlm-ink);
    font-family: "Inter", Arial, sans-serif;
    box-sizing: border-box;
    overflow: visible;
}

/* Formulario correo/contraseña: no depender solo de .auth-form genérico */
body.auth-page--landing #authLoginDrawer #auth-login .rlm2 .auth-form,
body.auth-page--landing #authRegisterDrawer .auth-register-panel__inner .rlm2 .auth-form {
    flex-shrink: 0;
    min-height: 0;
    position: relative;
    z-index: 2;
}

/*
 * Refuerzo máximo: si el <form> está en el DOM pero no se ve, era Thymeleaf o un clip.
 * Tras th:unless explícito + id, forzar flujo visible (no afecta si el nodo no existe).
 */
body.auth-page--landing #auth-landing-password-login-form.auth-landing-manual-form,
body.auth-page--landing #auth-login form#auth-landing-password-login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 4 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}
body.auth-page--landing .rlm2__row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    min-height: 48px;
}
/* Login mockup: marca centrada + monedas a la derecha */
body.auth-page--landing #authLoginDrawer .rlm2__row-top {
    position: relative;
    justify-content: center;
}
body.auth-page--landing #authLoginDrawer .rlm2__wordmark {
    margin: 0 auto;
    padding-top: 0;
}
body.auth-page--landing #authLoginDrawer .rlm2__wordmark-img {
    height: 44px;
    max-width: 250px;
    object-position: center;
}
body.auth-page--landing #authLoginDrawer .rlm2__illu {
    position: absolute;
    right: 0;
    top: -2px;
}
body.auth-page--landing .rlm2__wordmark {
    display: block;
    text-decoration: none;
    line-height: 1;
    padding-top: 2px;
}
body.auth-page--landing .rlm2__wordmark-img {
    display: block;
    height: 22px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
}
body.auth-page--landing .rlm2__illu {
    flex-shrink: 0;
    width: 64px;
    line-height: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}
body.auth-page--landing .rlm2__illu img {
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

body.auth-page--landing .rlm2__h1 {
    margin: 4px 0 8px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height:1.2;
    color: var(--rlm-ink) !important;
    text-align: left;
}
body.auth-page--landing .rlm2__h1-accent {
    color: var(--rlm-neon) !important;
    font-weight: 800;
}
body.auth-page--landing .rlm2__lead {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rlm-dim) !important;
    text-align: left;
    max-width: 26em;
}

/* —— Registro (mockup 2): cabecera con marca centrada + ilustración a la derecha —— */
body.auth-page--landing .rlm2--register {
    padding-top: 36px;
    padding-left: 26px;
    padding-right: 26px;
}
body.auth-page--landing .rlm2__header--register {
    position: relative;
    display: block;
    min-height: 56px;
    margin: 0 0 4px;
}
body.auth-page--landing .rlm2__header--register .rlm2__brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px 0 40px; /* aire: X izquierda + monedas derecha */
    min-height: 40px;
}
body.auth-page--landing .rlm2__header--register .rlm2__wordmark {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}
body.auth-page--landing .rlm2__header--register .rlm2__wordmark-img {
    height: 44px;
    max-width: 250px;
    object-position: center;
}
body.auth-page--landing .rlm2__header--register .rlm2__illu {
    position: absolute;
    right: -4px;
    top: -6px;
    width: 76px;
    max-height: 76px;
    margin: 0;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
body.auth-page--landing .rlm2__h1--register {
    margin-top: 10px;
    font-size: 1.5rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
}
body.auth-page--landing .rlm2--register .rlm2__lead {
    margin-bottom: 18px;
    color: #8b95a0 !important;
    font-size: 0.88rem;
    max-width: none;
}

/* Mensajes */
body.auth-page--landing .rlm2 .auth-msg,
body.auth-page--landing .rlm2 .auth-msg--error,
body.auth-page--landing .rlm2 .auth-msg--ok {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 0 0 12px;
}
body.auth-page--landing .rlm2 .auth-msg--error {
    background: rgba(127, 29, 29, 0.45) !important;
    border: 1px solid rgba(248, 113, 113, 0.4) !important;
    color: #fecaca !important;
}
body.auth-page--landing .rlm2 .auth-msg--ok {
    background: rgba(6, 78, 59, 0.45) !important;
    border: 1px solid color-mix(in srgb, var(--rlm-neon) 50%, transparent) !important;
    color: #bbf7d0 !important;
}

/* Divisor con texto */
body.auth-page--landing .rlm2__rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rlm-dim-2) !important;
    text-transform: none;
    letter-spacing: 0.02em;
}
body.auth-page--landing .rlm2__rule::before,
body.auth-page--landing .rlm2__rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rlm-line), transparent);
}
body.auth-page--landing .rlm2__rule span {
    flex-shrink: 0;
    white-space: nowrap;
}
body.auth-page--landing .rlm2__rule--tight {
    margin-top: 2px;
    margin-bottom: 10px;
}

/* OAuth 2×2 */
body.auth-page--landing .rlm2__oauth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0 0 4px;
}
body.auth-page--landing .rlm2__oauth .btn,
body.auth-page--landing .rlm2__oauth a.btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    width: 100%;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    box-sizing: border-box;
    transition: filter 0.15s, border-color 0.15s, box-shadow 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #151a18 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.auth-page--landing .rlm2__oauth .btn i {
    font-size: 1.1rem;
}
/* Logos OAuth con color de marca */
body.auth-page--landing .rlm2__oauth a.auth-google-gmail i {
    background: conic-gradient(
        from -35deg,
        #ea4335 0deg 95deg,
        #fbbc05 95deg 180deg,
        #34a853 180deg 270deg,
        #4285f4 270deg 360deg
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
body.auth-page--landing .rlm2__oauth a.auth-oauth-apple i {
    color: #ffffff !important;
}
body.auth-page--landing .rlm2__oauth a.auth-oauth-facebook i,
body.auth-page--landing .rlm2__oauth a.rlm2-oauth--fb i {
    color: #1877f2 !important;
}
body.auth-page--landing .rlm2__oauth a.auth-oauth-ms i,
body.auth-page--landing .rlm2__oauth a.rlm2-oauth--ms i {
    color: #00a4ef !important;
}
body.auth-page--landing .rlm2__oauth a.auth-oauth-facebook,
body.auth-page--landing .rlm2__oauth a.rlm2-oauth--fb {
    background: var(--rlm-facebook-bg) !important;
    border-color: color-mix(in srgb, var(--rlm-facebook) 55%, #1e3a5f) !important;
}
body.auth-page--landing .rlm2__oauth a.auth-oauth-ms,
body.auth-page--landing .rlm2__oauth a.rlm2-oauth--ms {
    background: var(--rlm-ms) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}
body.auth-page--landing .rlm2__oauth a.auth-google-gmail,
body.auth-page--landing .rlm2__oauth a.auth-oauth-apple {
    background: #1a1f1d !important;
}
body.auth-page--landing .rlm2__oauth .btn:hover {
    filter: brightness(1.08);
}

/* Formulario */
body.auth-page--landing .rlm2 .auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
/* Registro más compacto: dos columnas (mail+nombre / contraseña+confirmar) */
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
    align-items: start;
}
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form > label {
    min-width: 0;
}
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form > .rlm2__rules-lead,
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form > .auth-password-rules,
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form > .rlm2__rules,
body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form > .auth-submit {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    body.auth-page--landing #authRegisterDrawer .rlm2--register .auth-form {
        grid-template-columns: 1fr;
    }
}
body.auth-page--landing .rlm2 .auth-form .auth-submit {
    margin-top: 4px;
}
body.auth-page--landing .rlm2 .auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rlm-ink) !important;
}
body.auth-page--landing .rlm2 .auth-form label > span:first-child {
    color: #e5e7eb !important;
}
body.auth-page--landing .rlm2 .auth-input-icon-wrap,
body.auth-page--landing .rlm2 .auth-input-icon-wrap--password {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #121615 !important;
    border: 1px solid #2a3431 !important;
    min-height: 50px;
    padding: 0 12px 0 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}
body.auth-page--landing .rlm2 .auth-input-icon {
    color: #facc15 !important;
    width: 2.25rem;
    display: inline-flex;
    justify-content: center;
    font-size: 0.95rem;
}
body.auth-page--landing .rlm2 .auth-form input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    border-radius: 0;
    color: #f8fafc !important;
    font-size: 0.95rem;
    height: 46px;
    padding: 0 4px;
    box-shadow: none !important;
}
/* Importante: no romper controles nativos como checkbox/radio */
body.auth-page--landing .rlm2 .auth-form input[type="email"],
body.auth-page--landing .rlm2 .auth-form input[type="password"],
body.auth-page--landing .rlm2 .auth-form input[type="text"] {
    appearance: none;
    -webkit-appearance: none;
}
/* Evita que Chrome pinte blanco el campo autocompletado */
body.auth-page--landing .rlm2 .auth-form input:-webkit-autofill,
body.auth-page--landing .rlm2 .auth-form input:-webkit-autofill:hover,
body.auth-page--landing .rlm2 .auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0 1000px #121615 inset !important;
    box-shadow: 0 0 0 1000px #121615 inset !important;
    transition: background-color 9999s ease-out 0s;
}
body.auth-page--landing .rlm2 .auth-form input::placeholder {
    color: #6b7280;
}
body.auth-page--landing .rlm2 .auth-form input:focus {
    outline: none;
}
body.auth-page--landing .rlm2 .auth-input-icon-wrap:focus-within,
body.auth-page--landing .rlm2 .auth-input-icon-wrap--password:focus-within {
    border-color: var(--rlm-neon) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rlm-neon) 25%, transparent) !important;
}

body.auth-page--landing .rlm2 .auth-input-icon-wrap--password input {
    padding-right: 2.4rem;
}
body.auth-page--landing .rlm2 .auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8b95a0;
    cursor: pointer;
}
body.auth-page--landing .rlm2 .auth-password-toggle:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

body.auth-page--landing .rlm2 .auth-login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}
body.auth-page--landing .rlm2 .auth-login-remember-row label {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    font-size: 0.86rem;
    color: #e5e7eb !important;
    font-weight: 600;
    gap: 8px;
    cursor: pointer;
}
body.auth-page--landing .rlm2 .auth-login-remember-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 17px;
    accent-color: var(--rlm-neon);
    appearance: auto;
    -webkit-appearance: checkbox;
    cursor: pointer;
}
body.auth-page--landing .rlm2 .auth-inline-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rlm-neon) !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel {
    margin: 4px 0 2px;
    display: grid;
    gap: 10px;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel[hidden] {
    display: none !important;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit--recover {
    min-height: 56px;
    border-radius: 14px;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 0 18px !important;
    color: #04140c !important;
    text-shadow: none !important;
    background: linear-gradient(180deg, #59ffa0 0%, #2ce67b 38%, #1ecf69 100%) !important;
    border: 1px solid rgba(24, 173, 91, 0.95) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(34, 197, 94, 0.25),
        0 8px 24px rgba(19, 145, 75, 0.45) !important;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit--recover > i {
    font-size: 1.08rem;
    color: #042112 !important;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit--recover > span {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    color: #042112 !important;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit {
    width: 100%;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit--secondary {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    background: linear-gradient(180deg, rgba(14, 24, 20, 0.96) 0%, rgba(9, 15, 13, 0.98) 100%) !important;
    color: #e5e7eb !important;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(34, 197, 94, 0.14),
        0 8px 22px rgba(0, 0, 0, 0.32);
    transition: filter 0.15s ease, border-color 0.15s ease;
}
body.auth-page--landing .rlm2 .auth-forgot-password-panel .auth-submit--secondary:hover {
    filter: brightness(1.06);
    border-color: rgba(34, 197, 94, 0.62) !important;
}
body.auth-page--landing .rlm2 .auth-forgot-password-msg {
    margin: 2px 0 0;
    font-size: 0.82rem;
}

/* CTA Ingresar (verde, mockup login) */
body.auth-page--landing .rlm2 .auth-submit.btn-modal-primary,
body.auth-page--landing .rlm2 .auth-form .auth-submit.btn-modal-primary {
    min-height: 52px;
    border-radius: 14px;
    width: 100%;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid #15803d;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, #2ddc6e 0%, #1ba85a 40%, #0f5c32 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(34, 197, 94, 0.2),
        0 4px 20px color-mix(in srgb, var(--rlm-neon) 28%, transparent);
    cursor: pointer;
    transition: filter 0.15s, transform 0.12s ease;
}
body.auth-page--landing .rlm2 .auth-submit.btn-modal-primary:hover {
    filter: brightness(1.06);
}

/* Registro: botón oro (degradado + resplandor) */
body.auth-page--landing .rlm2 .auth-submit.auth-submit--gold {
    min-height: 52px;
    border-radius: 14px;
    width: 100%;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0c0a08 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid color-mix(in srgb, var(--rlm-gold-4) 70%, #451a03) !important;
    background: linear-gradient(180deg, var(--rlm-gold-1) 0%, var(--rlm-gold-2) 35%, #e89600 70%, #b45309 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(250, 204, 21, 0.25),
        0 4px 18px rgba(234, 179, 8, 0.35),
        0 10px 36px rgba(180, 83, 9, 0.38);
    cursor: pointer;
    transition: filter 0.15s, transform 0.12s ease;
}
body.auth-page--landing .rlm2 .auth-submit.auth-submit--gold:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

/* Requisitos de contraseña (caja del mockup) */
body.auth-page--landing .rlm2__rules-lead {
    margin: 2px 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8b95a0 !important;
    line-height: 1.3;
}
body.auth-page--landing .rlm2 .auth-password-rules,
body.auth-page--landing .rlm2 .rlm2__rules {
    margin: 6px 0 10px;
    padding: 12px 14px 12px 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #9ca3af !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(7, 10, 15, 0.6) 100%);
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.auth-page--landing .rlm2 .auth-password-rules i,
body.auth-page--landing .rlm2 .rlm2__rules i {
    color: var(--rlm-neon) !important;
    margin-top: 2px;
    font-size: 0.7rem;
    flex-shrink: 0;
    opacity: 0.95;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rlm-neon) 45%, transparent));
}
body.auth-page--landing .rlm2 .auth-password-rules li,
body.auth-page--landing .rlm2 .rlm2__rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Footer y trust */
body.auth-page--landing .rlm2 .auth-footer {
    text-align: center;
    margin: 12px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--rlm-dim) !important;
}
body.auth-page--landing .rlm2 .auth-footer .auth-modal__switch {
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    color: var(--rlm-neon) !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
}
body.auth-page--landing .rlm2__trust {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    background: linear-gradient(180deg, rgba(6, 12, 10, 0.95) 0%, #050606 100%);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #8b95a0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.auth-page--landing .rlm2--register .rlm2__trust {
    border-color: rgba(46, 204, 113, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.auth-page--landing .rlm2__trust > i {
    color: var(--rlm-neon) !important;
    font-size: 1.1rem;
    margin-top: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rlm-neon) 35%, transparent));
}
body.auth-page--landing .rlm2__trust-hl,
body.auth-page--landing .rlm2__trust .rlm2__trust-hl,
body.auth-page--landing .rlm2__trust strong {
    color: var(--rlm-neon) !important;
    font-weight: 700;
}

/* =========================
   Password reset page style
   ========================= */
body.auth-page--landing.auth-page--reset .auth-reset-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
body.auth-page--landing.auth-page--reset .auth-reset-shell {
    width: min(100vw - 32px, 500px) !important;
    max-width: 500px !important;
    border-radius: 28px;
    padding: 0;
    background: linear-gradient(165deg, var(--rlm-bg-mid) 0%, var(--rlm-bg) 55%, #05060a 100%);
    border: 1px solid color-mix(in srgb, var(--rlm-neon) 45%, #0f1f18);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--rlm-neon) 32%, rgba(0, 0, 0, 0.4)),
        0 0 24px color-mix(in srgb, var(--rlm-neon) 22%, transparent),
        0 0 64px color-mix(in srgb, var(--rlm-neon) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 28px 72px rgba(0, 0, 0, 0.82);
}
body.auth-page--landing.auth-page--reset .rlm2--reset {
    padding: 34px 30px 28px;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .rlm2__row-top {
    justify-content: center;
    margin-bottom: 10px;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .rlm2__wordmark-img {
    height: 38px;
    max-width: 220px;
    object-position: center;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .rlm2__lead {
    margin-bottom: 16px;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .auth-form {
    margin-top: 4px;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .auth-footer {
    margin-top: 14px;
}
body.auth-page--landing.auth-page--reset .rlm2--reset .rlm2__trust {
    margin-top: 14px;
}
