/* Public authentication surfaces share this visual system. */
:root {
    --auth-primary: var(--tp-color-primary, #6a29db);
    --auth-primary-strong: var(--tp-color-primary-strong, #4f1ca8);
    --auth-bg: var(--tp-bg-app, #f7f7fb);
    --auth-text: var(--tp-text, #252238);
    --auth-muted: var(--tp-text-muted, #6f6b7d);
    --auth-border: var(--tp-border, #e7e4ef);
    --auth-radius: 1.25rem;
    --auth-shadow: 0 1rem 2.5rem rgba(37, 34, 56, .12);
}

body.auth-page {
    min-height: 100dvh;
    margin: 0;
    color: var(--auth-text);
    background-color: var(--auth-bg);
    background-image: url("../../img/auth-bg-fluid.svg?v=20260812b");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Inter, system-ui, sans-serif;
}

.auth-page .container-login,
.auth-page > .container.my-3 {
    width: 100%;
    max-width: 1180px;
    min-height: 100dvh;
    margin: 0 auto !important;
    padding: 2rem 1.25rem;
    display: flex;
    align-items: center;
}

.auth-page .container-login > .row,
.auth-page > .container.my-3 > .card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.auth-page .card {
    overflow: hidden;
    border: 1px solid var(--auth-border) !important;
    border-radius: var(--auth-radius) !important;
    box-shadow: var(--auth-shadow) !important;
    background: #fff;
}

.auth-page .card-body { padding: 0 !important; }
.auth-page .row { --bs-gutter-x: 0; }
.auth-page .col-lg-5,
.auth-page .col-lg-6 { min-height: 0; }
.auth-page.auth-login .card-body > .row > .col-lg-6:first-child { flex: 0 0 42%; max-width: 42%; }
.auth-page.auth-login .card-body > .row > .col-lg-6:last-child { flex: 0 0 58%; max-width: 58%; }
.auth-page.auth-register .card-body > .row > .col-lg-5 { flex: 0 0 38%; max-width: 38%; }
.auth-page.auth-register .card-body > .row > .col-lg-7 { flex: 0 0 62%; max-width: 62%; }

.auth-page .bg-login-image,
.auth-page .bg-register-image {
    position: absolute;
    inset: 0;
    min-height: 0;
    background-position: center;
    background-size: cover !important;
}

.auth-page.auth-login .card-body > .row > .col-lg-6:first-child,
.auth-page.auth-register .card-body > .row > .col-lg-5 {
    position: relative;
    overflow: hidden;
}

.auth-page .bg-login-image::after,
.auth-page .bg-register-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(79, 28, 168, .34), rgba(37, 34, 56, .04) 70%);
}
.auth-page.auth-login-commerce .bg-login-image::after,
.auth-page.auth-register-commerce .bg-register-image::after {
    background: linear-gradient(155deg, rgba(79, 28, 168, .22), rgba(37, 34, 56, .03) 70%);
}

.auth-page .p-5,
.auth-page .p-3 { padding: clamp(1.5rem, 4vw, 3.5rem) !important; }
.auth-page .titulo-bienvenida,
.auth-page h2.titulo-bienvenida {
    margin: 0 0 .4rem;
    color: var(--auth-text);
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
    opacity: 1;
}
.auth-page h3.titulo-bienvenida,
.auth-page h3.text-dark { margin: 0 0 .4rem !important; color: var(--auth-text) !important; font-size: clamp(1.65rem, 2.4vw, 2.15rem); line-height: 1.15; font-weight: 700; }
.auth-page.auth-login .titulo-bienvenida { font-size: clamp(1.45rem, 2vw, 1.85rem); letter-spacing: -.015em; }
.auth-page .titulo-bienvenida::after { display: none; }
.auth-page h5.text-muted { margin-bottom: 1.75rem !important; color: var(--auth-muted) !important; font-size: .98rem; }
.auth-page form.user { margin-top: 1.25rem; }
.auth-page .auth-label { display: block; margin: 0 0 .35rem; color: var(--auth-text); font-size: .78rem; font-weight: 600; }
.auth-page form.user > .mb-3,
.auth-page form.user > .row { margin-bottom: .9rem !important; }
.auth-page form.user .form-control-user,
.auth-page form.user select.form-control-user {
    min-height: 3.25rem;
    padding: .8rem 1rem !important;
    border: 1px solid var(--auth-border);
    border-radius: .8rem !important;
    color: var(--auth-text);
    background: #fff;
    font-size: .95rem;
    box-shadow: none;
}
.auth-page form.user .form-control-user:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .22rem rgba(106, 41, 219, .15);
}
.auth-page .icons-form { display: none; }
.auth-page .fa-solid { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 900; }
.auth-page .fa-regular { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 400; }
.auth-page .position-relative .form-control-user { padding-right: 3.25rem !important; }
.auth-page .toggle-password {
    top: 50% !important;
    right: .75rem !important;
    margin: 0 !important;
    padding: .7rem;
    color: var(--auth-muted);
    cursor: pointer;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
}
.auth-page .toggle-password:focus-visible { outline: 3px solid rgba(106, 41, 219, .25); border-radius: .5rem; }
.auth-page .botones_login { display: flex; gap: .75rem; margin: 1.25rem 0 0; }
.auth-page .btn-ingresar,
.auth-page .btn-registrar {
    width: auto;
    min-height: 3.1rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: .8rem !important;
    box-shadow: none;
    font-size: .95rem !important;
    font-weight: 800;
}
.auth-page .btn-ingresar { flex: 1; color: #fff; background: var(--auth-primary); }
.auth-page .btn-ingresar:hover { background: var(--auth-primary-strong); }
.auth-page .btn-registrar { color: var(--auth-primary) !important; background: #fff !important; border: 1px solid var(--auth-primary) !important; text-decoration: none !important; }
.auth-page .btn-registrar .f-cW,
.auth-page .btn-registrar .text-white { color: inherit !important; background: transparent !important; border: 0 !important; text-decoration: none !important; }
.auth-page .btn-registrar:hover { color: var(--auth-primary-strong) !important; background: #f7f3ff !important; }
.auth-page a { color: var(--auth-primary); }
.auth-page .container-links { display: flex; gap: 1rem; margin: 1.25rem 0 0; padding: 0; }
.auth-page .container-links a { color: var(--auth-muted); font-size: .82rem; }
.auth-page .container-links i { margin-right: .25rem; color: var(--auth-primary); font-size: 1rem !important; }
.auth-page .help-links,
.auth-page .legal-p { position: static; margin: 1.25rem 0 0; padding: 0; color: var(--auth-muted); background: transparent !important; font-size: .75rem; }
.auth-page .help-links { display: none; }
.auth-page .legal-p { display: none; }
.auth-page .auth-legal-footer { margin: 1.25rem 0 0; padding-bottom: 1.5rem; color: var(--auth-muted); font-size: .75rem; text-align: center; }
.auth-page .auth-legal-footer a { color: inherit; }
.auth-page .auth-legal-footer a:hover,
.auth-page .auth-legal-footer a:focus-visible { color: var(--auth-primary); }
.auth-page .auth-auxiliary { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--auth-border); }
.auth-page .auth-role-switch { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .6rem .85rem; border: 1px solid color-mix(in srgb, var(--auth-border) 80%, transparent); border-radius: .7rem; color: var(--auth-muted); font-size: .82rem; transition: border-color .15s ease, background-color .15s ease; }
.auth-page .auth-role-switch i { color: var(--auth-primary); }
.auth-page .auth-role-switch:hover { border-color: var(--auth-primary); background: #faf8ff; }
.auth-page .auth-role-switch:focus-visible { outline: 3px solid rgba(106, 41, 219, .18); outline-offset: 2px; }
.auth-page.auth-login .text-center[style*="margin-bottom"],
.auth-page.auth-login .text-center[style*="margin-top:2rem"] { margin: 1rem 0 0 !important; }
.auth-page.auth-login .text-center[style*="margin-bottom"] a,
.auth-page.auth-login .text-center[style*="margin-top:2rem"] a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1px solid var(--auth-border); border-radius: .7rem; color: var(--auth-muted); font-size: .82rem; text-decoration: none; }
.auth-page.auth-login .text-center[style*="margin-bottom"] a:hover,
.auth-page.auth-login .text-center[style*="margin-top:2rem"] a:hover { border-color: var(--auth-primary); background: #faf8ff; }
.auth-page hr { margin: 1rem 0 !important; }
.auth-page .fa-shop { font-family: "Font Awesome 5 Free"; font-weight: 900; }
.auth-page .fa-shop::before { content: "\f54e"; }
.auth-page.auth-register form .row > .col-sm-6:first-child { position: relative; }
.auth-page.auth-register .toggle-password { left: auto !important; }
.auth-page.auth-login-user .bg-login-image { background-position: 58% center !important; }
.auth-page.auth-register-user .bg-login-image { background-position: 68% 100% !important; background-size: auto 130% !important; }
.auth-page.auth-register-commerce .bg-register-image { background-position: center center !important; }
.auth-page.auth-login .bg-login-image { min-height: 34rem; }
.auth-page.auth-login-commerce .bg-login-image,
.auth-page.auth-register-commerce .bg-register-image {
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center center !important;
}
.auth-page.auth-login .card-body > .row > .col-lg-6:last-child > .p-5 { padding-bottom: .5rem !important; }
.auth-page.auth-reset .auth-reset-shell {
    width: 100%;
    max-width: 1040px;
    min-height: 100dvh;
    margin: 0 auto !important;
    padding: 2rem 1.25rem;
    display: flex;
    align-items: center;
}
.auth-page.auth-reset .auth-reset-shell > .card { width: 100%; margin: 0 !important; }
.auth-page.auth-reset .auth-reset-shell .col-lg-5 { flex: 0 0 42%; max-width: 42%; min-height: 34rem; }
.auth-page.auth-reset .auth-reset-shell .col-lg-7 { flex: 0 0 58%; max-width: 58%; }
.auth-page.auth-reset .auth-reset-shell .bg-register-image {
    width: 100%;
    height: 100%;
    min-height: 34rem;
    padding: 0;
    object-fit: cover;
    object-position: 42% center;
    border-radius: 0;
    background: #eef0f8;
}
.auth-page.auth-reset .auth-reset-shell .col-lg-5 { position: relative; overflow: hidden; }
.auth-page.auth-reset .auth-reset-shell .col-lg-5::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(155deg, rgba(79, 28, 168, .22), rgba(37, 34, 56, .02) 72%);
}
.auth-page.auth-reset .auth-reset-shell .titulo-bienvenida {
    margin-bottom: .75rem;
    color: var(--auth-text);
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
}
.auth-page.auth-reset .auth-reset-shell .titulo-bienvenida::after { display: none; }
.auth-page.auth-reset .auth-reset-shell form.user > p { margin-bottom: 1.5rem; color: var(--auth-muted); line-height: 1.6; }
.auth-page.auth-reset .auth-reset-shell form.user .form-control-user { margin-top: .35rem !important; }
.auth-page.auth-reset .auth-reset-shell .form-check { margin-top: .5rem !important; }
.auth-page.auth-reset .auth-reset-shell .btn-primary {
    width: 100%;
    min-height: 3.1rem;
    margin-top: 0;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: .8rem !important;
    color: #fff;
    background: var(--auth-primary);
    box-shadow: none;
    font-weight: 700;
}
.auth-page.auth-reset .auth-reset-shell .btn-primary:hover,
.auth-page.auth-reset .auth-reset-shell .btn-primary:focus {
    background: var(--auth-primary-strong);
}
.auth-page.auth-reset .auth-reset-shell form.user > hr { margin-top: 1.25rem !important; }
.auth-page.auth-reset .auth-reset-shell form.user .small { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1px solid var(--auth-border); border-radius: .7rem; color: var(--auth-muted); text-decoration: none; }
.auth-page.auth-reset .auth-reset-shell form.user .small:hover,
.auth-page.auth-reset .auth-reset-shell form.user .small:focus-visible { border-color: var(--auth-primary); background: #faf8ff; }
@media (max-width: 991.98px) {
    .auth-page.auth-reset .auth-reset-shell .col-lg-5,
    .auth-page.auth-reset .auth-reset-shell .col-lg-7 { flex: 0 0 100% !important; max-width: 100% !important; }
    .auth-page.auth-reset .auth-reset-shell .col-lg-5 { display: none !important; }
}
@media (max-width: 575.98px) {
    .auth-page.auth-reset .auth-reset-shell { padding: .5rem; }
    .auth-page.auth-reset .auth-reset-shell .p-5 { padding: 1.35rem !important; }
}

@supports not (color: color-mix(in srgb, black, white)) {
    .auth-page .auth-role-switch { border-color: var(--auth-border); }
}
.auth-page.auth-register .card-body > .row > .col-lg-7 > .p-5 > .text-center a[href*="login"] { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1px solid var(--auth-border); border-radius: .7rem; color: var(--auth-muted); font-size: .82rem; text-decoration: none; }
.auth-page .help-links a,
.auth-page .legal-p a { color: inherit; }
.auth-page .alert { border-radius: .75rem; font-size: .85rem; }
.auth-page .form-check { display: flex; gap: .55rem; align-items: flex-start; padding-left: 0; }
.auth-page .form-check-input { flex: 0 0 auto; margin: .25rem 0 0; }
.auth-page .form-check-label { color: var(--auth-muted); font-size: .85rem; }
.auth-page hr { opacity: .12; }

/* Auth V2 activation/recovery share the canonical login shell. */
.auth-v2-shell { width: 100%; max-width: 1180px; min-height: 100dvh; margin: 0 auto; padding: 2rem 1.25rem; display: flex; align-items: center; }
.auth-v2-card { width: 100%; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); overflow: hidden; border: 1px solid var(--auth-border); border-radius: var(--auth-radius); background: #fff; box-shadow: var(--auth-shadow); }
.auth-v2-art { position: relative; min-height: 650px; overflow: hidden; background: linear-gradient(145deg, rgba(79,28,168,.08), rgba(106,41,219,.18)), url("../../img/login-2.png") center/cover; }
.auth-v2-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(79,28,168,.46), rgba(37,34,56,.05) 72%); }
.auth-v2-art-copy { position: absolute; z-index: 1; right: 2rem; bottom: 2rem; left: 2rem; display: grid; gap: .35rem; color: #fff; }
.auth-v2-art-copy span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .86; }
.auth-v2-art-copy strong { max-width: 18rem; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.15; }
.auth-v2-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 4vw, 3.5rem); }
.auth-v2-header { margin-bottom: 1.85rem; }
.auth-eyebrow { display: inline-block; margin-bottom: .65rem; color: var(--auth-primary); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-v2-header h1 { margin: 0 0 .55rem; color: var(--auth-text); font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.1; letter-spacing: -.025em; }
.auth-v2-header p, .auth-v2-step-copy { max-width: 38rem; margin: 0; color: var(--auth-muted); line-height: 1.6; }
.auth-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .15rem 0 2.25rem; color: var(--auth-muted); font-size: .75rem; }
.auth-stepper > div { position: relative; z-index: 0; display: grid; justify-items: center; gap: .45rem; min-width: 0; text-align: center; }
.auth-stepper > div:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: .78rem; left: 50%; width: 100%; height: 1px; background: var(--auth-border); }
.auth-stepper > div.is-complete:not(:last-child)::after { background: var(--auth-primary); }
.auth-stepper span { display: grid; width: 1.6rem; height: 1.6rem; place-items: center; border: 1px solid var(--auth-border); border-radius: 50%; color: var(--auth-muted); background: #fff; font-weight: 800; }
.auth-stepper b { overflow: hidden; max-width: 100%; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.auth-stepper .is-current { color: var(--auth-primary-strong); font-weight: 700; }
.auth-stepper .is-current span { border-color: var(--auth-primary); color: #fff; background: var(--auth-primary); }
.auth-stepper .is-complete span { border-color: var(--auth-primary); color: var(--auth-primary); background: #f0eaff; }
.auth-v2-form { display: grid; gap: .85rem; margin-top: 1.65rem; }
.auth-v2-form label { margin-top: .45rem; color: var(--auth-text); font-size: .8rem; font-weight: 700; }
.auth-v2-form input:not([type="radio"]) { width: 100%; min-height: 3.25rem; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid var(--auth-border); border-radius: .8rem; color: var(--auth-text); background: #fff; font: inherit; }
.auth-v2-form input:not([type="radio"]):focus { border-color: var(--auth-primary); outline: 0; box-shadow: 0 0 0 .22rem rgba(106,41,219,.15); }
.auth-v2-primary { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; gap: .55rem; width: 100%; margin-top: .7rem; padding: .75rem 1.25rem; border: 0; border-radius: .8rem; color: #fff !important; background: var(--auth-primary); font: inherit; font-size: .95rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.auth-v2-primary:hover { background: var(--auth-primary-strong); transform: translateY(-1px); }
.auth-v2-primary:focus-visible, .auth-v2-back:focus-visible, .auth-password-toggle:focus-visible { outline: 3px solid rgba(106,41,219,.25); outline-offset: 2px; }
.auth-v2-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: auth-v2-spin .7s linear infinite; }
.is-loading .auth-v2-spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .8; }
.auth-v2-alert { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid #f0c6d0; border-radius: .75rem; color: #8b2638; background: #fff5f7; font-size: .88rem; line-height: 1.45; }
.auth-v2-step-title { margin: 0 0 .4rem; color: var(--auth-text); font-size: 1.35rem; font-weight: 800; }
.auth-channel-list { display: grid; gap: .75rem; margin-top: .9rem; }
.auth-channel-card { display: grid; grid-template-columns: auto 2.5rem 1fr; align-items: center; gap: .75rem; min-height: 4.4rem; padding: .75rem 1rem; border: 1px solid var(--auth-border); border-radius: .9rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.auth-channel-card:has(input:checked) { border-color: var(--auth-primary); background: #faf8ff; box-shadow: 0 0 0 3px rgba(106,41,219,.1); }
.auth-channel-card input { position: absolute; opacity: 0; }
.auth-channel-card input:focus-visible + .auth-channel-icon { outline: 3px solid rgba(106,41,219,.25); outline-offset: 3px; }
.auth-channel-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .75rem; color: var(--auth-primary); background: #f0eaff; font-size: 1.25rem; }
.auth-channel-card b, .auth-channel-card small { display: block; }
.auth-channel-card b { color: var(--auth-text); }
.auth-channel-card small { margin-top: .15rem; color: var(--auth-muted); }
.auth-otp-input { max-width: 13rem; margin: .35rem auto .25rem; text-align: center; font-size: 1.5rem !important; font-weight: 800; letter-spacing: .25em; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 5rem !important; }
.auth-password-toggle { position: absolute; top: 50%; right: .5rem; min-height: 2.25rem; padding: .3rem .55rem; border: 0; border-radius: .5rem; color: var(--auth-primary); background: transparent; font: inherit; font-size: .78rem; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.auth-field-help { margin: .15rem 0 .35rem; color: var(--auth-muted); font-size: .78rem; }
.auth-v2-success { display: grid; justify-items: center; padding: 1.5rem 0 .5rem; text-align: center; }
.auth-v2-success-icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; margin-bottom: 1rem; border-radius: 50%; color: #fff; background: #3aa76d; font-size: 1.8rem; font-weight: 800; animation: auth-v2-pop .3s ease both; }
.auth-v2-success h2 { margin: 0 0 .4rem; color: var(--auth-text); font-size: 1.45rem; }
.auth-v2-success p { margin: 0; color: var(--auth-muted); }
.auth-v2-success .auth-v2-primary { max-width: 20rem; }
.auth-v2-back { display: inline-flex; align-self: center; align-items: center; gap: .35rem; margin-top: 1.6rem; padding: .55rem .8rem; border: 1px solid var(--auth-border); border-radius: .65rem; color: var(--auth-muted) !important; background: #fff; font-size: .85rem; font-weight: 600; text-decoration: none !important; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.auth-v2-back:hover { border-color: var(--auth-primary); color: var(--auth-primary) !important; background: #faf8ff; }
@keyframes auth-v2-spin { to { transform: rotate(360deg); } }
@keyframes auth-v2-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 820px) { .auth-v2-shell { padding: 1rem; } .auth-v2-card { grid-template-columns: 1fr; } .auth-v2-art { display: none; } }
@media (max-width: 575.98px) { .auth-v2-shell { padding: .5rem; } .auth-v2-content { padding: 1.35rem; } .auth-stepper { margin-bottom: 1.9rem; font-size: .7rem; } .auth-stepper > div:not(:last-child)::after { width: 100%; } .auth-v2-header h1 { font-size: 1.75rem; } }
@media (prefers-reduced-motion: reduce) { .auth-v2-primary, .auth-channel-card, .auth-v2-success-icon { transition: none; animation: none; } }

.auth-page #chooseRoleModal.show { display: block; overflow-y: auto; }
.auth-page #chooseRoleModal .modal-dialog,
.auth-page #chooseRoleModal.show .modal-dialog { max-width: 650px; margin: 2rem auto; transform: none !important; }
.auth-page #chooseRoleModal .modal-content { border: 0; border-radius: 1.25rem; box-shadow: var(--auth-shadow); }
.auth-page #chooseRoleModal .modal-header { padding: 1.5rem 1.5rem .5rem; border: 0; }
.auth-page #chooseRoleModal .modal-title { color: var(--auth-text); font-weight: 800; }
.auth-page #chooseRoleModal .closeModal { padding: .45rem .65rem; border: 0; background: #f1eef8; }
.auth-page #chooseRoleModal .closeModal i { color: var(--auth-text) !important; }
.auth-page #chooseRoleModal .modal-body { padding: .5rem 1.5rem 1.5rem; }
.auth-page #chooseRoleModal .modal-body > p { margin-bottom: 1rem; color: var(--auth-muted); }
.auth-page #chooseRoleModal .role-option {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: .75rem;
    align-items: center;
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: .9rem;
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}
.auth-page #chooseRoleModal .role-option:hover,
.auth-page #chooseRoleModal .role-option:focus-visible { border-color: var(--auth-primary); background: #faf8ff; outline: 0; }
.auth-page #chooseRoleModal .role-option i { display: grid; width: 3rem; height: 3rem; place-items: center; padding: 0 !important; border-radius: .75rem; color: var(--auth-primary); background: #f0eaff; font-size: 1.15rem; }
.auth-page #chooseRoleModal .role-option h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.auth-page #chooseRoleModal .role-option p { grid-column: 2 / 3; margin: .15rem 0 0; color: var(--auth-muted); font-size: .82rem; }

@media (max-width: 991.98px) {
    .auth-page .container-login,
    .auth-page > .container.my-3 { min-height: 100dvh; padding: 1rem; }
    .auth-page .col-lg-5,
    .auth-page .col-lg-6 { min-height: auto; }
    .auth-page.auth-login .card-body > .row > .col-lg-6,
    .auth-page.auth-register .card-body > .row > .col-lg-5,
    .auth-page.auth-register .card-body > .row > .col-lg-7 { flex: 0 0 100% !important; max-width: 100% !important; }
    .auth-page .container-login .card-body > .row > .col-lg-6:first-child,
    .auth-page > .container.my-3 .card-body > .row > .col-lg-5 { display: none !important; }
}
@media (max-width: 575.98px) {
    .auth-page .container-login,
    .auth-page > .container.my-3 { padding: .5rem; }
    .auth-page .p-5,
    .auth-page .p-3 { padding: 1.35rem !important; }
    .auth-page .bg-login-image,
    .auth-page .bg-register-image { min-height: 8rem; }
    .auth-page { background-position: 62% center; }
    .auth-page .botones_login { flex-direction: column; }
    .auth-page .btn-ingresar,
    .auth-page .btn-registrar { width: 100%; }
    .auth-page .container-links { gap: .5rem; }
    .auth-page #chooseRoleModal .modal-dialog { margin: .75rem; }
    .auth-page #chooseRoleModal .modal-body { padding: .5rem 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-page * { transition-duration: .01ms !important; } }
