/* Paginas de acceso con la marca Skatt Pluss (prototipos/pluss-acceso.html, Modelo 2).
   Paleta: marino #05222E, petroleo #00586B, turquesa #00AEB0, durazno #FBD4C1, naranja #E97B0D, ambar #F8AB11. */
:root {
  color-scheme: light;
  --font-sans: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --pl-teal: #00AEB0;
  --pl-amber: #F8AB11;
  --pl-band: linear-gradient(90deg, #05222E 0%, #00586B 24%, #00AEB0 46%, #E97B0D 68%, #F8AB11 84%, #FBD4C1 100%);
  --pl-warm: linear-gradient(100deg, #FF8606 0%, #FF9A12 42%, #FFB732 100%);
  --px-ease: cubic-bezier(.22, 1, .36, 1);
  --px-spring: cubic-bezier(.34, 1.56, .64, 1);
  /* "+" con la forma del logo, blanco y chico como antes; turquesa al encenderse */
  --pl-plus-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath transform='translate(9.75 9.75) scale(.105)' fill='%23ffffff' fill-opacity='.13' d='M43.9 16.4 57.7 0V43.9H43.9ZM0 57.6 16.4 43.9H43.9V57.6ZM43.9 43.9H93.2A6.85 6.85 0 0 1 93.2 57.6H59.7Q57.7 57.6 57.7 59.6V93.1A6.9 6.9 0 0 1 43.9 93.1Z'/%3E%3C/svg%3E");
  --pl-plus-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath transform='translate(9.75 9.75) scale(.105)' fill='%2300AEB0' fill-opacity='.9' d='M43.9 16.4 57.7 0V43.9H43.9ZM0 57.6 16.4 43.9H43.9V57.6ZM43.9 43.9H93.2A6.85 6.85 0 0 1 93.2 57.6H59.7Q57.7 57.6 57.7 59.6V93.1A6.9 6.9 0 0 1 43.9 93.1Z'/%3E%3C/svg%3E");
  font-family: var(--font-sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: grid; min-width: 320px; min-height: 100vh; margin: 0; place-items: center; padding: 24px; background: #F1F6F7; color: #05222E; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
[hidden] { display: none !important; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: rgba(0, 174, 176, .28); color: #05222E; }

/* ---------- Tarjeta sencilla (verificacion, acceso restringido, sesion cerrada) ---------- */
.access-card { position: relative; width: min(100%, 460px); overflow: hidden; padding: 46px 40px 36px; border: 1px solid #E2EBED; border-radius: 24px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(5, 34, 46, .04), 0 24px 64px rgba(5, 34, 46, .08); text-align: center; animation: pl-card .7s var(--px-ease) both; }
.access-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--pl-band); transform-origin: left center; animation: pl-band 1s .15s var(--px-ease) both; content: ''; }
.access-brand-logo { display: block; width: 180px; height: auto; margin: 0 auto 28px; aspect-ratio: 1100 / 239; object-fit: contain; }
.computer-icon { display: grid; width: 104px; height: 104px; margin: 0 auto 26px; place-items: center; border-radius: 30px; background: #E3F0F2; color: #00586B; }
.computer-icon svg { width: 64px; height: 64px; stroke-width: 2.5; }
.blocked-dot { fill: #E97B0D; stroke: #FFFFFF; }
.blocked-x { stroke: #FFFFFF; }
.check-line { stroke: #00AEB0; }
.computer-icon--checking { animation: breathe 1.8s ease-in-out infinite; }
.eyebrow { margin: 0 0 7px; color: #7A8F97; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.access-card h1 { margin: 0 0 10px; color: #05222E; font-family: var(--font-display); font-size: clamp(26px, 5vw, 31px); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.access-card p { max-width: 380px; margin: 0 auto 12px; color: #546C76; font-size: 14px; line-height: 1.6; }
.access-card button { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; border: 0; border-radius: 14px; background: var(--pl-warm); background-size: 150% 100%; color: #05222E; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(233, 123, 13, .8); transition: background-position .45s var(--px-ease), transform .18s ease; }
.access-card button:hover { background-position: 100% 0; }
.access-card button:active { transform: scale(.985); }
.access-card button:focus-visible { outline: 3px solid rgba(233, 123, 13, .5); outline-offset: 3px; }
.access-card button svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .35s var(--px-ease); }
.access-card button:hover svg { transform: translateX(4px); }
.access-card--restricted button { background: #05222E; color: #FFFFFF; box-shadow: 0 12px 24px -12px rgba(5, 34, 46, .6); }
.access-card--restricted button:hover { background: #0B3443; }
.loader { display: block; width: 24px; height: 24px; margin: 22px auto 0; border: 2px solid #DCE8EB; border-top-color: #00586B; border-radius: 50%; animation: spin .7s linear infinite; }
.close-help { display: block; margin-top: 12px; color: #7A8F97; font-size: 12px; }

/* ---------- Inicio de sesion: dos paneles ---------- */
body.login-body { padding: 40px 24px 56px; }
.pl-duo { display: grid; width: min(100%, 860px); grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); margin: auto; padding: 10px; border: 1px solid #E2EBED; border-radius: 30px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(5, 34, 46, .04), 0 24px 64px rgba(5, 34, 46, .08); }
.pl-pane { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding: 24px 24px 30px 26px; border-radius: 20px; clip-path: inset(0 round 20px); background: radial-gradient(110% 75% at 100% 100%, rgba(0, 194, 196, .5) 0%, rgba(0, 174, 176, .16) 40%, transparent 66%), linear-gradient(150deg, #05222E 0%, #062F3E 52%, #06495A 100%); color: #FFFFFF; }
.pl-pane__plus, .pl-pane__glow, .pl-pane__wave { position: absolute; z-index: -1; inset: 0; background-image: var(--pl-plus-tex); pointer-events: none; }
.pl-pane__plus { -webkit-mask-image: radial-gradient(118% 64% at 100% 40%, #000 0%, rgba(0, 0, 0, .62) 44%, transparent 82%); mask-image: radial-gradient(118% 64% at 100% 40%, #000 0%, rgba(0, 0, 0, .62) 44%, transparent 82%); }
.pl-pane__glow, .pl-pane__wave { background-image: var(--pl-plus-lit); opacity: 0; }
.pl-pane__glow { -webkit-mask-image: radial-gradient(circle 180px at var(--mx) var(--my), rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .4) 42%, transparent 100%); mask-image: radial-gradient(circle 180px at var(--mx) var(--my), rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .4) 42%, transparent 100%); transition: opacity .55s ease; }
.pl-pane.is-lit .pl-pane__glow { opacity: 1; }
.pl-pane__wave.is-on { animation: px-wave 1.35s var(--wd, 0s) ease-out both; }
@keyframes px-wave {
  0% { clip-path: circle(0 at var(--x) var(--y)); opacity: 1; }
  100% { clip-path: circle(125% at var(--x) var(--y)); opacity: 0; }
}
.pl-pane__band { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--pl-band); transform-origin: left center; }
.pl-pane__icons { display: flex; gap: 9px; margin-top: 22px; }
.px-ico { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.px-ico svg { width: 19px; height: 19px; stroke-width: 2; }
.px-ico--teal { background: linear-gradient(160deg, #1BC3C5, #00A2A4); }
.px-ico--orange { background: linear-gradient(160deg, #F38B24, #E1720A); }
.px-ico--petrol { background: linear-gradient(160deg, #1592AD, #00718A); }
.px-ico--amber { background: linear-gradient(160deg, #FFC14A, #F5A20C); }
.pl-pane__title { max-width: 11em; margin: 0; font-family: var(--font-display); font-size: 33px; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.pl-pane__text { max-width: 30em; margin: 12px 0 0; color: rgba(226, 238, 241, .86); font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.pl-duo__form { display: flex; align-items: center; padding: 30px 28px 24px; }
.pl-duo__col { width: min(100%, 352px); margin: 0 auto; }

/* Logo: "skatt" sube, el "+" gira y "pluss" se escribe (una pluma invisible destapa el logo) */
.pl-mark { position: relative; width: 200px; margin: 0 0 20px; aspect-ratio: 1100 / 239; }
.pl-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-mark__skatt { clip-path: inset(0 55.9% 0 0); }
.pl-mark__plus { clip-path: inset(0 45.1% 0 44.2%); transform-origin: 49.4% 54.6%; }
.pl-mark__pluss { clip-path: inset(0 0 0 55.5%); }
.pl-mark__pen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; pointer-events: none; }
.pl-mark__pen path { fill: none; stroke: #FFFFFF; stroke-width: 23; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; }

.pl-duo h1 { margin: 0 0 8px; color: #05222E; font-family: var(--font-display); font-size: 27px; font-weight: 400; line-height: 1.1; letter-spacing: -.035em; text-align: left; }
.pl-lead { margin: 0; color: #546C76; font-size: 14px; text-align: left; }
.pl-form { display: grid; margin-top: 20px; }
.pl-rows { display: grid; gap: 10px; }
/* Campos con el nombre adentro; sube al escribir */
.pl-bar { position: relative; display: flex; height: 54px; align-items: stretch; padding: 4px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #CFDDE0; transition: box-shadow .2s ease; }
.pl-bar:hover { box-shadow: inset 0 0 0 1px #B5CACE; }
.pl-bar.is-error { box-shadow: inset 0 0 0 1.5px #D9646C; }
.pl-seg { position: relative; min-width: 0; flex: 1 1 0; border-radius: 10px; transition: background .2s ease, box-shadow .2s ease; }
.pl-seg:focus-within { background: #FFFFFF; box-shadow: 0 0 0 1.5px #00586B, 0 0 0 5px rgba(0, 174, 176, .2); }
.pl-bar.is-error .pl-seg:focus-within { box-shadow: 0 0 0 1.5px #C4323B, 0 0 0 5px rgba(196, 50, 59, .14); }
.pl-seg__label { position: absolute; z-index: 1; top: 50%; left: 16px; margin: 0; color: #546C76; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; pointer-events: none; transform: translateY(-50%); transform-origin: left center; transition: transform .28s var(--px-ease), color .2s ease; }
.pl-seg:focus-within .pl-seg__label,
.pl-seg.is-filled .pl-seg__label,
.pl-seg:has(input:not(:placeholder-shown)) .pl-seg__label,
.pl-seg:has(input:-webkit-autofill) .pl-seg__label { transform: translateY(calc(-50% - 10px)) scale(.77); }
.pl-seg:focus-within .pl-seg__label { color: #00586B; }
.pl-seg input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 19px 16px 3px; border: 0; border-radius: inherit; outline: none; background: none; color: #05222E; font-size: 15px; font-weight: 500; caret-color: #00586B; }
.pl-seg--pass input { padding-right: 88px; }
.pl-seg input:-webkit-autofill, .pl-seg input:-webkit-autofill:hover, .pl-seg input:-webkit-autofill:focus { -webkit-text-fill-color: #05222E; transition: background-color 600000s 0s, color 600000s 0s; }
.pl-seg input::-ms-reveal, .pl-seg input::-ms-clear { display: none; }
.pl-seg__toggle { position: absolute; z-index: 2; top: 50%; right: 8px; height: 32px; padding: 0 12px; transform: translateY(-50%); border: 0; border-radius: 9px; background: none; color: #00586B; font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0; visibility: hidden; transition: background .16s ease, opacity .2s ease, visibility .2s; }
.pl-seg.is-filled .pl-seg__toggle,
.pl-seg:has(input:not(:placeholder-shown)) .pl-seg__toggle { opacity: 1; visibility: visible; }
.pl-seg__toggle:hover { background: #E3F0F2; }
.pl-seg__toggle:focus-visible { outline: 2px solid #00AEB0; outline-offset: 2px; }

/* Recordar mis datos (marcada de inicio): casilla con los colores de Pluss */
.pl-remember { position: relative; display: inline-flex; justify-self: start; align-items: center; gap: 10px; margin-top: 14px; color: #33505A; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pl-remember input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pl-remember__box { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 6px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #B5CACE; color: #FFFFFF; transition: background-color .18s ease, box-shadow .18s ease; }
.pl-remember__box svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .25s var(--px-ease); }
.pl-remember:hover .pl-remember__box { box-shadow: inset 0 0 0 1.5px #00586B; }
.pl-remember input:checked + .pl-remember__box { background: #00586B; box-shadow: none; }
.pl-remember input:checked + .pl-remember__box svg { opacity: 1; transform: none; }
.pl-remember input:focus-visible + .pl-remember__box { outline: 2px solid #00AEB0; outline-offset: 2px; }

.pl-error { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF0F1; color: #B4232C; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; }
.pl-error svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1.5px; stroke-width: 2; }
.is-shake { animation: pl-shake .42s ease both; }
@keyframes pl-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.pl-submit { display: flex; height: 48px; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--pl-warm); background-position: 0 0; background-size: 150% 100%; color: #05222E; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(233, 123, 13, .8); transition: background-position .45s var(--px-ease), transform .18s ease, opacity .18s ease; }
.pl-submit:hover { background-position: 100% 0; }
.pl-submit:active { transform: scale(.985); }
.pl-submit:focus-visible { outline: 3px solid rgba(233, 123, 13, .5); outline-offset: 3px; }
.pl-submit.is-busy { opacity: .85; cursor: wait; transform: none; }
.pl-submit__arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .35s var(--px-ease); }
.pl-submit:hover .pl-submit__arrow { transform: translateX(4px); }
.is-busy .pl-submit__arrow { display: none; }
.pl-spin { display: none; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-busy .pl-spin { display: block; }
.pl-note { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin: 16px 0 0; color: #546C76; font-size: 12px; text-align: left; }
.pl-note svg { width: 13px; height: 13px; flex: 0 0 13px; }

/* ---------- Entrada y salida ---------- */
.pl-duo.is-intro { animation: pl-card .7s var(--px-ease) both; }
.pl-duo.is-intro .pl-mark__skatt { animation: pl-up .6s .25s var(--px-ease) both; }
.pl-duo.is-intro .pl-mark__plus { animation: pl-spin .7s .45s var(--px-ease) both; }
.pl-duo.is-intro .pl-mark__pen { opacity: 1; animation: pl-ink-out .01s 2.75s forwards; }
.pl-duo.is-intro .pl-mark__pen path { animation: pl-ink var(--t) var(--d) cubic-bezier(.4, .1, .6, .9) forwards; }
.pl-duo.is-intro .pl-mark__pluss { animation: pl-ink-in .3s 2.45s ease both; }
.pl-duo.is-intro [data-intro] { animation: pl-up .55s var(--px-ease) both; animation-delay: calc(.75s + var(--i) * 60ms); }
.pl-duo.is-intro .pl-pane__band { animation: pl-band 1.1s .35s var(--px-ease) both; }
.pl-duo.is-intro .pl-pane__title { animation: pl-up .7s .75s var(--px-ease) both; }
.pl-duo.is-intro .pl-pane__text { animation: pl-up .6s .95s var(--px-ease) both; }
.pl-duo.is-intro .pl-pane .px-ico { animation: pl-pop .7s var(--px-spring) both; animation-delay: calc(.5s + var(--n) * 80ms); }
.pl-duo.is-leaving { animation: pl-out .35s ease forwards; }
@keyframes pl-card { from { opacity: 0; transform: translateY(18px); } }
@keyframes pl-band { from { transform: scaleX(0); } }
@keyframes pl-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes pl-spin { from { opacity: 0; transform: rotate(-180deg); } }
@keyframes pl-pop { from { opacity: 0; transform: scale(.5) rotate(-40deg); } }
@keyframes pl-ink { to { stroke-dashoffset: 0; } }
@keyframes pl-ink-in { from { opacity: 0; } }
@keyframes pl-ink-out { to { opacity: 0; } }
@keyframes pl-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.035); box-shadow: 0 0 0 10px rgba(0, 174, 176, .06); } }

@media (max-height: 700px) and (min-width: 921px) {
  body.login-body { padding-top: 24px; padding-bottom: 40px; }
  .pl-duo__form { padding-top: 26px; padding-bottom: 24px; }
  .pl-mark { width: 196px; margin-bottom: 18px; }
}
/* iPad vertical: los dos paneles lado a lado, un poco mas compactos */
@media (min-width: 721px) and (max-width: 920px) {
  body.login-body { padding: 32px 24px 48px; }
  .pl-duo { width: min(100%, 760px); grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .pl-pane { padding: 22px 20px 28px 22px; }
  .pl-pane__title { font-size: 29px; }
  .pl-pane__text { font-size: 14.5px; }
  .pl-duo__form { padding: 30px 22px 24px; }
}
/* Pantallas medianas: el pase arriba */
@media (min-width: 561px) and (max-width: 720px) {
  .pl-duo { width: min(100%, 520px); grid-template-columns: minmax(0, 1fr); }
  .pl-pane { padding: 26px 26px 30px; }
  .pl-pane__title { max-width: none; font-size: 29px; }
  .pl-pane__text { margin-top: 8px; }
  .pl-duo__form { padding: 32px 22px 26px; }
}
/* En el celular solo el formulario (el pase empujaria todo hacia abajo) */
@media (max-width: 560px) {
  body { padding: 16px 12px; }
  body.login-body { padding: 16px 12px 32px; }
  .pl-duo { width: min(100%, 520px); grid-template-columns: minmax(0, 1fr); padding: 8px; border-radius: 26px; }
  .pl-pane { display: none; }
  .pl-duo__form { padding: 30px 14px 22px; }
  .access-card { padding: 36px 22px 28px; border-radius: 22px; }
  .computer-icon { width: 92px; height: 92px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 560px) {
  .pl-note { display: block; text-wrap: balance; }
  .pl-note svg { display: inline-block; margin: 0 5px -2px 0; vertical-align: baseline; }
}
