/* PANTALLAS PUBLICAS DE STRATOX DTE (login, recuperar y crear contrasena) — marco en modulos/login/publico.php */
:root {
    --stx-navy: #12344D;
    --stx-navy-deep: #0C2436;
    --stx-azul: #2563EB;
    --stx-azul-oscuro: #1D4ED8;
    --stx-azul-claro: #6FA3FF;
    --stx-fondo: #F5F7FA;
    --stx-linea: #E3E9EF;
    --stx-tinta: #16212B;
    --stx-gris: #54636F;
    --stx-radio: 14px;
    --stx-sombra: 0 4px 12px rgba(18, 52, 77, .08), 0 12px 32px rgba(18, 52, 77, .10);
    --stx-titulos: 'Manrope', system-ui, sans-serif;
    --stx-texto: 'Inter', system-ui, sans-serif;
}

body {
    background: var(--stx-fondo);
}

.stx-publico {
    display: grid;
    grid-template-columns: minmax(380px, 46%) 1fr;
    min-height: 100vh;
    font-family: var(--stx-texto);
    color: var(--stx-tinta);
}

/* ---------- panel de marca ---------- */
.stx-marca {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px 32px;
    color: #fff;
    background: radial-gradient(120% 90% at 0% 0%, #1B4A6E 0%, var(--stx-navy) 45%, var(--stx-navy-deep) 100%);
}

.stx-capas {
    position: absolute;
    right: -70px;
    bottom: 60px;
    width: 420px;
    pointer-events: none;
}

.stx-capas span {
    display: block;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 6px;
    transform: skewX(-38deg);
    background: linear-gradient(90deg, rgba(37, 99, 235, .55), rgba(37, 99, 235, 0));
}

.stx-capas span:nth-child(2) {
    margin-left: 60px;
    opacity: .7;
}

.stx-capas span:nth-child(3) {
    margin-left: 120px;
    opacity: .45;
    background: linear-gradient(90deg, rgba(111, 163, 255, .5), rgba(111, 163, 255, 0));
}

.stx-marca-cuerpo {
    position: relative;
    max-width: 480px;
}

.stx-marca-logo {
    display: block;
    width: 210px;
    max-width: 100%;
    margin-bottom: 40px;
}

.stx-marca-producto {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stx-azul-claro);
}

.stx-marca-titulo {
    font-family: var(--stx-titulos);
    font-weight: 800;
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}

.stx-marca-texto {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 32px;
}

.stx-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stx-beneficios li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.stx-beneficios i {
    flex: 0 0 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    color: var(--stx-azul-claro);
    background: rgba(37, 99, 235, .18);
}

.stx-beneficios span {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .7);
}

.stx-beneficios b {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    color: #fff;
}

.stx-marca-pie {
    position: relative;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- contenido ---------- */
.stx-contenido {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px;
}

.stx-contenido-cuerpo {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 24px 0;
}

.stx-logo-movil {
    display: none;
    width: 190px;
    margin: 0 auto 28px;
}

.stx-tarjeta {
    background: #fff;
    border: 1px solid var(--stx-linea);
    border-radius: var(--stx-radio);
    box-shadow: var(--stx-sombra);
    padding: 36px 32px;
}

.stx-titulo {
    font-family: var(--stx-titulos);
    font-weight: 800;
    font-size: 26px;
    color: var(--stx-navy);
    margin-bottom: 6px;
}

.stx-subtitulo {
    color: var(--stx-gris);
    font-size: 14.5px;
    margin-bottom: 28px;
}

.stx-icono-estado {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--stx-azul);
    background: rgba(37, 99, 235, .1);
}

.stx-icono-estado.stx-alerta {
    color: #C0392B;
    background: rgba(192, 57, 43, .1);
}

.stx-icono-estado.stx-exito {
    color: #15803D;
    background: #EAF7EF;
}

.stx-publico .form-label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--stx-tinta);
}

.stx-publico .form-control {
    height: 46px;
    border-radius: 10px;
    border-color: var(--stx-linea);
    font-size: 15px;
}

.stx-publico .form-control:focus {
    border-color: var(--stx-azul);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.stx-publico .form-control.is-valid,
.stx-publico .was-validated .form-control:valid {
    padding-right: 1em;
}

.stx-publico .password-input {
    padding-right: 3rem;
}

.stx-publico .password-addon {
    height: 46px;
}

.stx-publico .btn-primary {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    background: var(--stx-azul);
    border-color: var(--stx-azul);
}

.stx-publico .btn-primary:hover,
.stx-publico .btn-primary:focus,
.stx-publico .btn-primary:active {
    background: var(--stx-azul-oscuro);
    border-color: var(--stx-azul-oscuro);
}

.stx-publico .btn-outline-secondary {
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--stx-navy);
    border-color: var(--stx-linea);
}

.stx-publico .btn-outline-secondary:hover {
    background: var(--stx-fondo);
    color: var(--stx-navy);
    border-color: var(--stx-linea);
}

.stx-publico a:not(.btn) {
    color: var(--stx-azul);
}

.stx-publico .btn-link {
    color: var(--stx-azul);
}

.stx-enlace {
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.stx-enlace:hover {
    text-decoration: underline;
}

.stx-recordar {
    font-size: 13.5px;
    color: var(--stx-gris);
}

.stx-aviso {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #92400E;
    background: #FEF3C7;
}

.stx-separador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--stx-gris);
    font-size: 13px;
}

.stx-separador::before,
.stx-separador::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--stx-linea);
}

.stx-nota {
    font-size: 13.5px;
    color: var(--stx-gris);
}

/* medidor de la contrasena */
.stx-fuerza {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0 6px;
}

.stx-fuerza span {
    height: 5px;
    border-radius: 3px;
    background: var(--stx-linea);
    transition: background .2s;
}

.stx-fuerza[data-nivel="1"] span:nth-child(-n+1) { background: #DC2626; }
.stx-fuerza[data-nivel="2"] span:nth-child(-n+2) { background: #F59E0B; }
.stx-fuerza[data-nivel="3"] span:nth-child(-n+3) { background: #3B82F6; }
.stx-fuerza[data-nivel="4"] span:nth-child(-n+4) { background: #16A34A; }

.stx-fuerza-texto {
    font-size: 12.5px;
    color: var(--stx-gris);
}

.stx-requisitos {
    list-style: none;
    padding: 12px 14px;
    margin: 14px 0 0;
    border-radius: 10px;
    background: var(--stx-fondo);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 12.5px;
    color: var(--stx-gris);
}

.stx-requisitos li::before {
    content: '\25CB';
    display: inline-block;
    width: 16px;
    color: #9AA5B1;
}

.stx-requisitos li.valid {
    color: #15803D;
}

.stx-requisitos li.valid::before {
    content: '\2713';
    font-weight: 700;
    color: #16A34A;
}

/* pie */
.stx-pie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--stx-gris);
}

.stx-publico .stx-pie a {
    color: var(--stx-gris);
    text-decoration: none;
}

.stx-publico .stx-pie a:hover {
    color: var(--stx-azul);
}

/* ---------- celular y tableta ---------- */
@media (max-width: 991.98px) {
    .stx-publico {
        grid-template-columns: 1fr;
    }

    .stx-marca {
        display: none;
    }

    .stx-logo-movil {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .stx-contenido {
        padding: 16px;
    }

    .stx-tarjeta {
        padding: 28px 20px;
    }

    .stx-requisitos {
        grid-template-columns: 1fr;
    }
}
