﻿/* ==========================================================================
   PI Net Folletos · Pantallas de acceso (login, registro, activación y contraseña)
   Identidad corporativa Publinfo: azul #0018FF, negro #222222, Open Sans.
   Todo va acotado bajo .acceso para no interferir con el resto de la aplicación.
   ========================================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/opensans/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/opensans/open-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/opensans/open-sans-700.woff2") format("woff2"); }

.acceso {
    --azul: #0018FF;
    --azul-hover: #0013CC;
    --negro: #222222;
    --gris: #5F6168;
    --gris-claro: #8A8D96;
    --tinte: #EEF0FF;
    --tinte-2: #DDE1FF;
    --linea: #E3E4EA;
    --fondo-suave: #F6F7FB;
    --error: #C4001A;
    --error-fondo: #FDECEE;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    color: var(--negro);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.acceso *, .acceso *::before, .acceso *::after { box-sizing: border-box; }
.acceso a { color: var(--azul); text-decoration: none; cursor: pointer; }
.acceso a:hover, .acceso a:focus { color: var(--azul-hover); text-decoration: underline; }
.acceso button { font-family: inherit; }

/* Cabecera */
.acceso-cabecera { height: 64px; display: flex; align-items: center; padding: 0 72px; border-bottom: 1px solid var(--linea); }
.acceso-cabecera img { height: 34px; width: auto; display: block; }

/* Contenido */
.acceso-principal { flex: 1; display: flex; justify-content: center; padding: 28px 24px 32px; }
.acceso-columna { width: 100%; max-width: 440px; }
.acceso h1 { font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.3px; color: var(--negro); margin: 0 0 6px; }
.acceso-intro { font-size: 14px; line-height: 1.5; color: var(--gris); margin: 0 0 18px; }

/* Campos */
.acceso-campo { margin-bottom: 12px; }
.acceso-campo label { display: block; font-size: 13px; font-weight: 600; color: var(--negro); margin: 0 0 4px; }
.acceso-req { color: var(--azul); margin-left: 2px; }
.acceso-input-wrap { position: relative; }
.acceso-input {
    width: 100%; height: 40px; border-radius: 20px; background: var(--tinte); border: 1.5px solid transparent;
    padding: 0 20px; font-family: inherit; font-size: 14px; color: var(--negro); outline: none; box-shadow: none;
    -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.acceso-input:-webkit-autofill, .acceso-input:-webkit-autofill:hover, .acceso-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--tinte) inset; -webkit-text-fill-color: var(--negro); caret-color: var(--negro); transition: background-color 9999s ease-out 0s; }
.acceso-input::placeholder { color: #7C80A0; opacity: 1; }
.acceso-input:focus { border-color: var(--azul); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(0, 24, 255, .12); }
.acceso-input.con-icono { padding-right: 52px; }
.acceso-campo.error .acceso-input { border-color: var(--error); background: #FFFFFF; }
.acceso-select { cursor: pointer; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230018FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 14px; }
.acceso-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.acceso-ojo:hover, .acceso-ojo:focus { background: rgba(0, 24, 255, .08); outline: none; }
.acceso-ojo svg { width: 20px; height: 20px; }
.acceso-msg-error { font-size: 12px; color: var(--error); margin: 3px 0 0 20px; font-weight: 600; }

/* Acciones */
.acceso-acciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.acceso-btn {
    height: 42px; border-radius: 21px; background: var(--azul); color: #FFFFFF; border: 0; font-weight: 600; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 30px; cursor: pointer; transition: background-color .15s;
}
.acceso-btn:hover, .acceso-btn:focus { background: var(--azul-hover); color: #FFFFFF; text-decoration: none; outline: none; }
.acceso-btn[disabled] { background: #A9B0FF; cursor: not-allowed; }
.acceso-btn.completo { width: 100%; }
.acceso-enlace-sec { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--negro); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.acceso-enlace-sec:hover { color: var(--azul); }
.acceso-olvido { display: flex; justify-content: flex-end; margin: -4px 0 0; font-size: 13px; font-weight: 600; }
.acceso-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #FFFFFF; animation: acceso-giro .8s linear infinite; }
@keyframes acceso-giro { to { transform: rotate(360deg); } }

.acceso-oblig { font-size: 12px; color: var(--gris); margin: 10px 0 0; }
.acceso-oblig b { color: var(--azul); }
.acceso-privacidad { font-size: 12.5px; line-height: 1.55; color: var(--gris); margin: 14px 0 0; padding: 10px 16px; border-radius: 12px; background: var(--fondo-suave); }
.acceso-privacidad a { font-weight: 600; }
.acceso-pie-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
.acceso-pie-form a { font-weight: 600; }
.acceso-version { font-size: 12px; color: var(--gris-claro); margin: 12px 0 0; }

/* Tarjeta de resultado */
.acceso-tarjeta { border: 1px solid var(--linea); border-radius: 20px; padding: 28px 32px 26px; }
.acceso-tarjeta h1 { font-size: 26px; }
.acceso-icono { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--tinte); }
.acceso-icono.error { background: var(--error-fondo); }
.acceso-icono svg { width: 26px; height: 26px; }
.acceso-ayuda { font-size: 13px; color: var(--gris); margin: 16px 0 0; line-height: 1.55; }
.acceso-ayuda a { font-weight: 600; }

/* Espera del acceso federado */
.acceso-espera { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 80px 24px; }
.acceso-espera .acceso-spinner { width: 44px; height: 44px; border-width: 4px; border-color: var(--tinte-2); border-top-color: var(--azul); }
.acceso-espera p { font-size: 15px; color: var(--gris); margin: 0; }

/* Pie */
.acceso-pie { background: var(--azul); color: #FFFFFF; padding: 22px 72px 14px; }
.acceso-pie a, .acceso-pie a:hover, .acceso-pie a:focus { color: #FFFFFF; }
.acceso-pie-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.acceso-pie-top img { height: 26px; width: auto; display: block; }
.acceso-pie-enlaces { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; font-size: 13px; font-weight: 600; }
.acceso-pie-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 12px; }
.acceso-pie-legal { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.acceso-pie-bot svg { width: 18px; height: 18px; display: block; fill: #FFFFFF; }

/* Móvil */
@media (max-width: 720px) {
    .acceso-cabecera { height: 56px; padding: 0 20px; }
    .acceso-cabecera img { height: 30px; }
    .acceso-principal { padding: 22px 20px 28px; }
    .acceso h1 { font-size: 24px; }
    .acceso-tarjeta { padding: 22px 20px; }
    .acceso-pie { padding: 20px 20px 14px; }
    .acceso-pie-enlaces { justify-content: flex-start; }
    .acceso-pie-top { flex-direction: column; }
    .acceso-pie-bot { flex-direction: column-reverse; align-items: flex-start; }
}
