/**
 * Blessed7
 * Archivo: assets/css/acceso.css
 *
 * Diseño compartido para:
 * - Inicio de sesión.
 * - Activación de cuenta.
 * - Recuperación de contraseña.
 *
 * Compatible con computadora, tableta y celular.
 */

.pagina-acceso {
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(124, 58, 237, 0.09),
            transparent 28rem
        ),
        #f6f5f8;
}

.pagina-acceso main {
    overflow: hidden;
}

.acceso {
    min-height: calc(100vh - 80px);
    color: #17131d;
}

.acceso__seccion {
    padding: clamp(1.25rem, 4vw, 4rem) 0;
}

.acceso__contenedor {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
    width: min(1180px, calc(100% - 2rem));
    min-height: min(720px, calc(100vh - 8rem));
    margin-inline: auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(28, 22, 37, 0.08);
    border-radius: 2rem;
    box-shadow: 0 30px 80px rgba(27, 20, 38, 0.12);
}

/*
|--------------------------------------------------------------------------
| Presentación de Blessed7 Rewards
|--------------------------------------------------------------------------
*/

.acceso__presentacion {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 16%,
            rgba(216, 180, 254, 0.32),
            transparent 17rem
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(168, 85, 247, 0.28),
            transparent 22rem
        ),
        linear-gradient(145deg, #100b17 0%, #21142f 55%, #3b1a59 100%);
}

.acceso__presentacion::before,
.acceso__presentacion::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.acceso__presentacion::before {
    top: -9rem;
    right: -7rem;
    width: 25rem;
    height: 25rem;
}

.acceso__presentacion::after {
    right: 12%;
    bottom: -12rem;
    width: 30rem;
    height: 30rem;
}

.acceso__volver {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.acceso__volver span {
    font-size: 1.15rem;
}

.acceso__volver:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-0.2rem);
}

.acceso__presentacion-contenido {
    width: min(100%, 35rem);
    padding-block: clamp(3rem, 9vh, 6rem);
}

.acceso__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    color: #d8b4fe;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.acceso__eyebrow::before {
    width: 1.8rem;
    height: 1px;
    content: "";
    background: currentColor;
}

.acceso__presentacion h1 {
    max-width: 10ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.8rem, 5.2vw, 5.4rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.acceso__presentacion h1 span {
    display: block;
    color: #d8b4fe;
}

.acceso__descripcion {
    max-width: 34rem;
    margin: 1.6rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.acceso__beneficios {
    display: grid;
    gap: 0.8rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.acceso__beneficios li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    font-weight: 650;
}

.acceso__beneficios li span {
    display: grid;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    color: #ead7ff;
    font-size: 0.72rem;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.acceso__presentacion-nota {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Panel y formulario
|--------------------------------------------------------------------------
*/

.acceso__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4.5vw, 4.5rem);
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at 100% 0, #ede9fe, transparent 20rem);
}

.acceso__tarjeta {
    width: min(100%, 29rem);
    margin-inline: auto;
}

.acceso__encabezado {
    margin-bottom: 1.75rem;
}

.acceso__icono {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    place-items: center;
    background: linear-gradient(135deg, #17111f, #6d28d9);
    border-radius: 1.05rem;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.25);
}

.acceso__etiqueta {
    margin: 0 0 0.4rem;
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.acceso__encabezado h2 {
    margin: 0;
    color: #18121f;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.acceso__encabezado > p:last-child {
    margin: 0.65rem 0 0;
    color: #766f7e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.acceso__alerta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.9rem;
}

.acceso__alerta--error {
    color: #991b1b;
    background: #fff7f7;
    border-color: #fecaca;
}

.acceso__alerta-icono {
    display: grid;
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    place-items: center;
    background: #dc2626;
    border-radius: 50%;
}

.acceso__alerta p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.55;
}

.acceso__formulario {
    display: grid;
    gap: 1.2rem;
}

.acceso__campo {
    display: grid;
    gap: 0.48rem;
}

.acceso__campo label {
    color: #332b3c;
    font-size: 0.86rem;
    font-weight: 750;
}

.acceso__label-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.acceso__label-fila a {
    color: #7c3aed;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.acceso__label-fila a:hover {
    text-decoration: underline;
}

.acceso__control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.45rem;
    overflow: hidden;
    background: #faf9fb;
    border: 1px solid #dfdbe4;
    border-radius: 0.9rem;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.acceso__control:focus-within {
    background: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.11);
}

.acceso__prefijo {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 0 0 1rem;
    color: #5e5667;
    font-size: 0.9rem;
    font-weight: 750;
}

.acceso__control input {
    width: 100%;
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.85rem 1rem;
    color: #17131d;
    font: inherit;
    font-size: 0.96rem;
    background: transparent;
    border: 0;
    outline: 0;
}

.acceso__control input::placeholder {
    color: #aaa3b1;
    opacity: 1;
}

.acceso__campo small {
    color: #8a8391;
    font-size: 0.76rem;
    line-height: 1.45;
}

.acceso__boton,
.acceso__boton-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.45rem;
    padding: 0.85rem 1.15rem;
    font: inherit;
    font-size: 0.91rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 0.9rem;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.acceso__boton {
    justify-content: space-between;
    margin-top: 0.25rem;
    color: #ffffff;
    background: linear-gradient(110deg, #18121f, #6d28d9);
    border: 0;
    box-shadow: 0 13px 27px rgba(65, 31, 101, 0.2);
}

.acceso__boton span:last-child {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.acceso__boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(65, 31, 101, 0.28);
}

.acceso__boton-secundario {
    color: #332b3c;
    background: #ffffff;
    border: 1px solid #dcd7e2;
}

.acceso__boton-secundario:hover {
    color: #6d28d9;
    background: #faf7ff;
    border-color: #bda7dd;
    transform: translateY(-1px);
}

.acceso__separador {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin: 1.4rem 0;
}

.acceso__separador span {
    height: 1px;
    background: #e8e4eb;
}

.acceso__separador p {
    margin: 0;
    color: #99919f;
    font-size: 0.72rem;
    font-weight: 650;
}

.acceso__ayuda {
    margin: 0.95rem 0 0;
    color: #8b8491;
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: center;
}

.acceso__seguridad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.5rem 0 0;
    color: #9a939f;
    font-size: 0.72rem;
    font-weight: 650;
}

.acceso__seguridad span {
    color: #7c3aed;
    font-size: 1rem;
}

/*
|--------------------------------------------------------------------------
| Accesibilidad
|--------------------------------------------------------------------------
*/

.acceso a:focus-visible,
.acceso button:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.38);
    outline-offset: 3px;
}

.acceso__presentacion a:focus-visible {
    outline-color: rgba(255, 255, 255, 0.7);
}

/*
|--------------------------------------------------------------------------
| Tabletas
|--------------------------------------------------------------------------
*/

@media (max-width: 960px) {
    .acceso__contenedor {
        grid-template-columns: minmax(18rem, 0.8fr) minmax(22rem, 1.2fr);
    }

    .acceso__presentacion {
        padding: 2rem;
    }

    .acceso__presentacion h1 {
        font-size: clamp(2.6rem, 6vw, 4rem);
    }

    .acceso__panel {
        padding: 2.5rem;
    }
}

/*
|--------------------------------------------------------------------------
| Celulares
|--------------------------------------------------------------------------
*/

@media (max-width: 720px) {
    .pagina-acceso {
        background: #ffffff;
    }

    .acceso {
        min-height: auto;
    }

    .acceso__seccion {
        padding: 0;
    }

    .acceso__contenedor {
        display: block;
        width: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .acceso__presentacion {
        min-height: auto;
        padding: 1.25rem 1.25rem 2.25rem;
        border-radius: 0 0 1.75rem 1.75rem;
    }

    .acceso__presentacion::before {
        top: -12rem;
        right: -11rem;
    }

    .acceso__presentacion::after {
        display: none;
    }

    .acceso__volver {
        min-height: 2.5rem;
        padding-inline: 0.25rem;
    }

    .acceso__presentacion-contenido {
        padding: 2.25rem 0 0;
    }

    .acceso__eyebrow {
        margin-bottom: 0.9rem;
    }

    .acceso__presentacion h1 {
        max-width: 12ch;
        font-size: clamp(2.5rem, 12vw, 3.7rem);
    }

    .acceso__descripcion {
        margin-top: 1.1rem;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .acceso__beneficios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 1.4rem;
    }

    .acceso__beneficios li {
        align-items: flex-start;
        gap: 0.4rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .acceso__beneficios li span {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.58rem;
    }

    .acceso__presentacion-nota {
        display: none;
    }

    .acceso__panel {
        padding: 2rem 1.25rem 2.5rem;
    }

    .acceso__tarjeta {
        width: 100%;
    }

    .acceso__icono {
        width: 2.9rem;
        height: 2.9rem;
        margin-bottom: 1rem;
        border-radius: 0.9rem;
    }

    .acceso__encabezado {
        margin-bottom: 1.5rem;
    }

    .acceso__encabezado h2 {
        font-size: 1.8rem;
    }

    .acceso__control,
    .acceso__boton,
    .acceso__boton-secundario {
        min-height: 3.5rem;
    }
}

@media (max-width: 420px) {
    .acceso__beneficios {
        display: none;
    }

    .acceso__presentacion {
        padding-bottom: 1.8rem;
    }

    .acceso__presentacion-contenido {
        padding-top: 1.75rem;
    }

    .acceso__panel {
        padding-inline: 1rem;
    }

    .acceso__label-fila {
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acceso *,
    .acceso *::before,
    .acceso *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}