/* Pantalla de ingreso. Paleta tomada de styles.css para que sea la misma marca. */

:root {
    --pcassi-red: #ed0012;
    --pcassi-blue: #126db4;
    --dominion-blue: #1557c0;
    --tinta: #1a2e4a;
    --texto: #33415c;
    --suave: #64748b;
    --borde: #dbe3ee;
    --fondo-claro: #f4f6f9;
    --radio: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, system-ui, sans-serif;
    color: var(--texto);
    background: var(--fondo-claro);
}

.pantalla {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 100vh;
}

/* ------------------------------------------------------------ panel oscuro */

.panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #04101f;
    color: #fff;
}

/* Las curvas y el resplandor se hacen con gradientes: sin imagenes de fondo,
   la pantalla carga igual de rapido y no hay assets extra que mantener. */
.panel-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 12% 18%, rgba(18, 109, 180, .40) 0%, transparent 55%),
        radial-gradient(90% 80% at 88% 78%, rgba(237, 0, 18, .26) 0%, transparent 58%),
        radial-gradient(70% 60% at 70% 12%, rgba(21, 87, 192, .32) 0%, transparent 60%),
        linear-gradient(150deg, #04101f 0%, #071c33 48%, #04101f 100%);
}

.panel-fondo::after {
    /* trama tenue tipo circuito */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(80% 70% at 40% 45%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(80% 70% at 40% 45%, #000 0%, transparent 78%);
}

.panel-contenido {
    position: relative;
    padding: 56px clamp(32px, 6vw, 88px);
    max-width: 720px;
}

.marcas {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 44px;
}

.marcas img { height: 46px; width: auto; object-fit: contain; }

/* el logo de PCASSI es oscuro: sobre el panel negro necesita aclararse */
.marcas img:first-child { filter: brightness(0) invert(1); }

.separador {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, .28);
}

.pastilla {
    display: inline-block;
    margin: 0 0 28px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: 14px;
    color: #d6e4f5;
}

.panel h1 {
    margin: 0 0 22px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.02em;
}

.panel h1 em { font-style: normal; }
.panel h1 .azul { color: #3f9bff; }
.panel h1 .rojo { color: #ff4757; }

.bajada {
    margin: 0 0 46px;
    max-width: 44ch;
    font-size: 17px;
    line-height: 1.6;
    color: #b9c9dc;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beneficios li {
    font-size: 13px;
    line-height: 1.5;
    color: #93a7bd;
}

.beneficios .icono {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    font-size: 20px;
}

.beneficios strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
}

/* ---------------------------------------------------------- lado del form */

.acceso {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px clamp(20px, 4vw, 56px);
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
}

.tarjeta {
    width: 100%;
    max-width: 430px;
    padding: 40px clamp(24px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 33, 60, .10);
}

.tarjeta-logo {
    display: block;
    height: 76px;
    width: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.tarjeta-titulo {
    margin: 0 0 26px;
    text-align: center;
    font-size: 16px;
    color: var(--suave);
}

.aviso {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.aviso.error {
    border: 1px solid #f6c9ce;
    background: #fdf2f3;
    color: #9d1220;
}

.campo {
    position: relative;
    display: block;
    margin-bottom: 16px;
    padding: 10px 14px 8px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s;
}

.campo:focus-within {
    border-color: var(--pcassi-blue);
    box-shadow: 0 0 0 3px rgba(18, 109, 180, .14);
}

.etiqueta {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--suave);
}

.campo input {
    width: 100%;
    padding: 4px 0 2px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--tinta);
}

.campo input:focus { outline: none; }

.ver-clave {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--pcassi-blue);
    cursor: pointer;
}

.ver-clave:hover { background: #eef4fb; }

.captcha {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.captcha img {
    height: 60px;
    width: auto;
    border: 1px solid var(--borde);
    border-radius: 10px;
}

.captcha button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: #fff;
    font-size: 17px;
    line-height: 1;
    color: var(--suave);
    cursor: pointer;
}

.captcha button:hover { color: var(--pcassi-blue); border-color: var(--pcassi-blue); }
.campo-captcha { margin-bottom: 0; }
.campo-captcha input { text-transform: uppercase; letter-spacing: .18em; }

.ingresar {
    width: 100%;
    margin-top: 6px;
    padding: 15px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pcassi-red) 0%, #c40010 100%);
    box-shadow: 0 10px 24px rgba(237, 0, 18, .26);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, opacity .12s;
}

.ingresar:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(237, 0, 18, .32); }
.ingresar:active { transform: translateY(0); }
.ingresar:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.pie {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--borde);
    text-align: center;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--suave);
}

.firma {
    margin: 0;
    font-size: 12px;
    color: #90a0b5;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
    .pantalla { grid-template-columns: 1fr; }

    /* en pantallas chicas el panel es decorativo: lo que importa es el form */
    .panel { display: none; }

    .acceso { min-height: 100vh; }

    .tarjeta::before {
        content: "";
        display: block;
        height: 40px;
        margin: -10px auto 14px;
        background: url("assets/pcassi-logo.png") center/contain no-repeat;
    }
}

@media (max-width: 400px) {
    .tarjeta { padding: 28px 20px; }
    .captcha { grid-template-columns: 1fr auto; }
    .captcha .campo-captcha { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .ingresar { transition: none; }
    .ingresar:hover { transform: none; }
}
