/* Polish login user (Autogestión) — scope: .auth-page.auth-login.auth-login-user
 * NO afecta login-comercios, registrarse, recuperar-acceso, activar, reset-password.
 * Solo sobrescribe superficies visuales sin tocar contratos ni endpoints.
 */

body.auth-page.auth-login.auth-login-user {
    background: linear-gradient(180deg, #FAF9FF 0%, #F2F0FA 100%);
    background-image:
        radial-gradient(60rem 36rem at 78% 18%, rgba(106, 41, 219, .07), transparent 60%),
        radial-gradient(48rem 32rem at 18% 92%, rgba(106, 41, 219, .05), transparent 65%),
        linear-gradient(180deg, #FAF9FF 0%, #F2F0FA 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-page.auth-login.auth-login-user .card {
    border: 1px solid var(--auth-border) !important;
    border-radius: 26px !important;
    box-shadow:
        0 30px 60px -28px rgba(37, 34, 56, .22),
        0 8px 24px -10px rgba(79, 28, 168, .10),
        0 0 0 1px rgba(255, 255, 255, .6) inset !important;
}

.auth-page.auth-login.auth-login-user .card-body > .row > .col-lg-6:first-child {
    border-top-left-radius: 26px;
    border-bottom-left-radius: 26px;
}
.auth-page.auth-login.auth-login-user .card-body > .row > .col-lg-6:last-child {
    border-top-right-radius: 26px;
    border-bottom-right-radius: 26px;
}

.auth-page.auth-login.auth-login-user .bg-login-image {
    background-position: 58% center !important;
}

.auth-page.auth-login.auth-login-user .bg-login-image::after {
    background: linear-gradient(155deg, rgba(79, 28, 168, .28), rgba(37, 34, 56, .03) 72%);
}

/* Header eyebrow + title + subtitle — reemplaza "Tarjeta Pampeana: Autogestión / ¡Bienvenido!" */
.auth-page.auth-login.auth-login-user .auth-login-header {
    margin: 0 0 1.5rem;
}
.auth-page.auth-login.auth-login-user .auth-login-eyebrow {
    display: inline-block;
    margin: 0 0 .55rem;
    color: var(--auth-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-page.auth-login.auth-login-user .auth-login-title {
    margin: 0 0 .5rem;
    color: var(--auth-text);
    font-size: clamp(1.55rem, 2.1vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 700;
}
.auth-page.auth-login.auth-login-user .auth-login-subtitle {
    margin: 0;
    color: var(--auth-muted);
    font-size: .94rem;
    line-height: 1.5;
}

/* Header legacy: oculta el bloque h2 + h5 antiguo sin tocar la estructura compartida */
.auth-page.auth-login.auth-login-user > .container.container-login
    .row .card .card-body .row > .col-lg-6:last-child > .p-5 > .text-center
    > .titulo-bienvenida,
.auth-page.auth-login.auth-login-user > .container.container-login
    .row .card .card-body .row > .col-lg-6:last-child > .p-5 > .text-center
    > h5.text-muted {
    display: none !important;
}
.auth-page.auth-login.auth-login-user .titulo-bienvenida::after { display: none !important; }

/* Form: inputs modernos */
.auth-page.auth-login.auth-login-user form.user { margin-top: .25rem; }
.auth-page.auth-login.auth-login-user form.user > .mb-3 { margin-bottom: .85rem !important; }
.auth-page.auth-login.auth-login-user form.user .form-control-user {
    min-height: 3.05rem;
    padding: .75rem 1rem !important;
    border: 1px solid #E1DCEC;
    border-radius: 12px !important;
    color: var(--auth-text);
    background: #fff;
    font-size: .95rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.auth-page.auth-login.auth-login-user form.user .form-control-user::placeholder {
    color: #9A93AA;
    font-weight: 400;
}
.auth-page.auth-login.auth-login-user form.user .form-control-user:hover {
    border-color: #C9C0DD;
}
.auth-page.auth-login.auth-login-user form.user .form-control-user:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .22rem rgba(106, 41, 219, .18);
    outline: 0;
}

/* Contraseña: link de recuperación cerca del campo */
.auth-page.auth-login.auth-login-user .auth-login-password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: -.35rem 0 .85rem;
}
.auth-page.auth-login.auth-login-user .auth-login-password-row .auth-label {
    margin: 0;
}
.auth-page.auth-login.auth-login-user .auth-login-forgot {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--auth-primary);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: .45rem;
    padding: .15rem .25rem;
    transition: color .15s ease, background-color .15s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-forgot:hover,
.auth-page.auth-login.auth-login-user .auth-login-forgot:focus-visible {
    color: var(--auth-primary-strong);
    background: #faf8ff;
    outline: 0;
}

/* Oculta el link "¿Has olvidado tu contraseña?" legacy flotando */
.auth-page.auth-login.auth-login-user .text-center > a.small[href*="recuperar-acceso"] {
    display: none !important;
}

/* Botón mostrar/ocultar contraseña */
.auth-page.auth-login.auth-login-user .toggle-password {
    top: 50% !important;
    right: .5rem !important;
    width: 2.5rem;
    height: 2.5rem;
    color: #8A829A;
    transition: color .15s ease, background-color .15s ease;
}
.auth-page.auth-login.auth-login-user .toggle-password:hover {
    color: var(--auth-primary);
    background: #faf8ff;
}
.auth-page.auth-login.auth-login-user .toggle-password:focus-visible {
    outline: 3px solid rgba(106, 41, 219, .22);
    border-radius: .5rem;
}

/* Acción primaria */
.auth-page.auth-login.auth-login-user .auth-login-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 3.1rem;
    margin-top: .25rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: 12px !important;
    color: #fff;
    background: var(--auth-primary);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .005em;
    box-shadow: 0 6px 18px -8px rgba(79, 28, 168, .55);
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-primary:hover {
    background: var(--auth-primary-strong);
    box-shadow: 0 10px 24px -10px rgba(79, 28, 168, .65);
    transform: translateY(-1px);
}
.auth-page.auth-login.auth-login-user .auth-login-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -6px rgba(79, 28, 168, .55);
}
.auth-page.auth-login.auth-login-user .auth-login-primary:focus-visible {
    outline: 3px solid rgba(106, 41, 219, .35);
    outline-offset: 2px;
}
.auth-page.auth-login.auth-login-user .auth-login-primary[disabled] {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Acciones secundarias: bloque separado, jerarquía menor */
.auth-page.auth-login.auth-login-user .auth-login-secondary {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--auth-border);
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-heading {
    margin: 0 0 .7rem;
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: 1fr 1fr;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 2.85rem;
    padding: .65rem .95rem;
    border: 1px solid #E1DCEC;
    border-radius: 11px;
    background: #fff;
    color: var(--auth-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link:hover,
.auth-page.auth-login.auth-login-user .auth-login-secondary-link:focus-visible {
    border-color: var(--auth-primary);
    background: #faf8ff;
    color: var(--auth-primary-strong);
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(106, 41, 219, .12);
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link i {
    color: var(--auth-primary);
    font-size: 1rem;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link span {
    flex: 1;
    text-align: left;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link .auth-login-secondary-arrow {
    color: var(--auth-muted);
    font-size: .82rem;
    transition: transform .18s ease, color .18s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-secondary-link:hover .auth-login-secondary-arrow,
.auth-page.auth-login.auth-login-user .auth-login-secondary-link:focus-visible .auth-login-secondary-arrow {
    color: var(--auth-primary);
    transform: translateX(2px);
}

/* Oculta los botones legacy Ingresar/Registrarse/Activar y el bloque de botones viejo */
.auth-page.auth-login.auth-login-user .botones_login { display: none !important; }

/* Portal comercios: surface secundaria */
.auth-page.auth-login.auth-login-user .auth-login-commerce {
    margin: 1.25rem 0 0;
    padding: .9rem 1rem;
    border: 1px solid #E1DCEC;
    border-radius: 12px;
    background: linear-gradient(180deg, #FCFBFF 0%, #F8F6FD 100%);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--auth-text);
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce:hover,
.auth-page.auth-login.auth-login-user .auth-login-commerce:focus-visible {
    border-color: var(--auth-primary);
    background: linear-gradient(180deg, #FAF8FF 0%, #F4F0FC 100%);
    color: var(--auth-text);
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(106, 41, 219, .12);
}
.auth-page.auth-login.auth-login-user .auth-login-commerce-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: .65rem;
    color: var(--auth-primary);
    background: #F0EAFF;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce-text {
    flex: 1;
    min-width: 0;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce-title {
    display: block;
    color: var(--auth-text);
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: .1rem;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce-sub {
    display: block;
    color: var(--auth-muted);
    font-size: .8rem;
    line-height: 1.4;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce .auth-login-secondary-arrow {
    color: var(--auth-muted);
    font-size: .85rem;
    transition: transform .18s ease, color .18s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-commerce:hover .auth-login-secondary-arrow,
.auth-page.auth-login.auth-login-user .auth-login-commerce:focus-visible .auth-login-secondary-arrow {
    color: var(--auth-primary);
    transform: translateX(2px);
}

/* Oculta el bloque legacy "Sos un comercio / Haz click aqui" */
.auth-page.auth-login.auth-login-user > .container.container-login
    .row .card .card-body .row > .col-lg-6:last-child > .text-center
    > a[href*="login-comercios"] {
    display: none !important;
}

/* Footer: simplificado */
.auth-page.auth-login.auth-login-user .auth-login-footer {
    margin: 1.5rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--auth-border);
    display: flex;
    flex-direction: column;
    gap: .7rem;
    text-align: center;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--auth-muted);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-links a:hover,
.auth-page.auth-login.auth-login-user .auth-login-footer-links a:focus-visible {
    color: var(--auth-primary);
    outline: 0;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-links a i {
    color: var(--auth-primary);
    font-size: .95rem;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-legal {
    color: var(--auth-muted);
    font-size: .72rem;
    letter-spacing: .02em;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-legal a {
    color: inherit;
    text-decoration: none;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-legal a:hover,
.auth-page.auth-login.auth-login-user .auth-login-footer-legal a:focus-visible {
    color: var(--auth-primary);
    outline: 0;
}
.auth-page.auth-login.auth-login-user .auth-login-footer-legal-sep {
    display: inline-block;
    margin: 0 .4rem;
    color: #C9C0DD;
}

/* Oculta los bloques legacy del footer */
.auth-page.auth-login.auth-login-user .container-links,
.auth-page.auth-login.auth-login-user hr,
.auth-page.auth-login.auth-login-user .help-links,
.auth-page.auth-login.auth-login-user .help-comercio,
.auth-page.auth-login.auth-login-user .legal-p,
.auth-page.auth-login.auth-login-user .auth-legal-footer {
    display: none !important;
}

/* Alerts: refinados */
.auth-page.auth-login.auth-login-user .alert {
    margin: 0 0 1rem !important;
    padding: .8rem 1rem !important;
    border-radius: 10px;
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-page.auth-login.auth-login-user .card {
        border-radius: 22px !important;
    }
    .auth-page.auth-login.auth-login-user .card-body > .row > .col-lg-6:first-child,
    .auth-page.auth-login.auth-login-user .card-body > .row > .col-lg-6:last-child {
        border-radius: 22px;
    }
    .auth-page.auth-login.auth-login-user .bg-login-image { display: none !important; }
    .auth-page.auth-login.auth-login-user .card-body > .row > .col-lg-6:first-child { display: none !important; }
    .auth-page.auth-login.auth-login-user .container.container-login {
        padding: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-page.auth-login.auth-login-user .card { border-radius: 20px !important; }
    .auth-page.auth-login.auth-login-user .container.container-login {
        padding: .5rem !important;
    }
    .auth-page.auth-login.auth-login-user .auth-login-header { margin-bottom: 1.1rem; }
    .auth-page.auth-login.auth-login-user .auth-login-title { font-size: 1.45rem; }
    .auth-page.auth-login.auth-login-user .auth-login-subtitle { font-size: .88rem; }
    .auth-page.auth-login.auth-login-user .auth-login-secondary-grid {
        grid-template-columns: 1fr;
    }
    .auth-page.auth-login.auth-login-user .auth-login-footer-links { gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page.auth-login.auth-login-user .form-control-user,
    .auth-page.auth-login.auth-login-user .toggle-password,
    .auth-page.auth-login.auth-login-user .auth-login-primary,
    .auth-page.auth-login.auth-login-user .auth-login-secondary-link,
    .auth-page.auth-login.auth-login-user .auth-login-secondary-arrow,
    .auth-page.auth-login.auth-login-user .auth-login-commerce,
    .auth-page.auth-login.auth-login-user .auth-login-forgot,
    .auth-page.auth-login.auth-login-user .auth-login-footer-links a {
        transition: none !important;
    }
    .auth-page.auth-login.auth-login-user .auth-login-primary:hover { transform: none; }
}