/* HF481 - Pantalla de acceso, solo cuando existe .pdv-login.
   No se altera la autenticación ni otros usos de .login-page/.login-card. */
.pdv-login.login-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #031925;
  color: #f5fffa;
  isolation: isolate;
  overflow-x: clip;
}
.pdv-login *, .pdv-login *::before, .pdv-login *::after { box-sizing: border-box; }
.pdv-login__shell {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: clamp(14px,2vw,32px) clamp(12px,2vw,35px) 18px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0,1.33fr) minmax(430px,1fr);
  gap: clamp(16px,2.3vw,40px);
  align-items: center;
  min-width: 0;
}
.pdv-login__hero {
  position: relative;
  width: 100%;
  min-height: min(770px, calc(100svh - 118px));
  align-self: stretch;
  background: url('/login-v2/hero-aprobado.webp') left center / 100% 100% no-repeat;
  border-radius: 8px;
  overflow: visible;
  user-select: none;
}
.pdv-login__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%,transparent 72%,rgba(1,25,31,.10) 100%);
}
.pdv-login__sr-only {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.pdv-login__mascot {
  position: absolute;
  z-index: 2;
  bottom: -6px;
  left: 62%;
  width: clamp(150px,20vw,270px);
  max-width: 35%;
  pointer-events: none;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.40));
  animation: pdv-mascot-stroll 9s ease-in-out infinite alternate;
}
.pdv-login__mascot img { width:100%; height:auto; display:block; }
@keyframes pdv-mascot-stroll {
  from { transform: translate3d(-45px,0,0); }
  to { transform: translate3d(18px,0,0); }
}
.pdv-login__compact-brand { display:none; }
.pdv-login__mascot-mobile {display:none;}
.pdv-login .login-card.pdv-login__card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  min-width: 0;
  background: linear-gradient(118deg,rgba(5,62,64,.94),rgba(5,38,58,.97) 62%,rgba(3,28,44,.98));
  border: 1px solid rgba(71,241,180,.67);
  border-radius: 30px;
  padding: clamp(22px,2.75vw,40px) clamp(20px,3vw,45px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 0 0 2px rgba(12,147,94,.14),0 22px 64px rgba(0,0,0,.33),0 0 30px rgba(9,238,144,.11);
  color: #fafffd;
}
.pdv-login__card-head { display:flex; align-items:center; gap:15px; margin-bottom:22px; }
.pdv-login__shield { width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; color:#89ffaf; background:rgba(21,151,87,.16); border-radius:18px; }
.pdv-login__shield svg { width:40px; height:40px; }
.pdv-login__card h1 { color:#fff; font-size:clamp(25px,2.6vw,37px); line-height:1.13; margin:0 0 6px; font-weight:850; }
.pdv-login__card-subtitle { color:#e4f6f1; font-size:clamp(13px,1.2vw,17px); margin:0; line-height:1.35; }
.pdv-login__field.field { margin-bottom:14px; gap:6px; }
.pdv-login__field .pdv-login__label {
  color:#f7fff9;
  text-transform:none;
  letter-spacing:0;
  font-size:clamp(13px,1.1vw,15px);
  line-height:1.3;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}
.pdv-login__label svg {width:19px;height:19px;flex:0 0 19px;stroke:#f0fef6;}
.pdv-login__card input:not([type='checkbox']) {
  border-radius:11px;
  min-height:45px;
  color:#fafffb;
  padding:10px 14px;
  border:1px solid rgba(220,252,239,.60);
  background:rgba(179,232,225,.12);
  box-shadow:inset 0 1px 4px rgba(0,0,0,.10);
  font-size:15px;
}
.pdv-login__card input::placeholder {color:#c6dbe0;opacity:1;}
.pdv-login__card input:not([type='checkbox']):focus-visible,
.pdv-login__card button:focus-visible,
.pdv-login__card input[type='checkbox']:focus-visible {outline:3px solid #f5ca68;outline-offset:2px;}
.pdv-login__card input[readonly] {background:rgba(205,229,222,.10);}
.pdv-login__card .hf405-anchor-field {display:flex;align-items:stretch;gap:8px;}
.pdv-login__card .hf405-anchor-field input {min-width:0;flex:1;}
.pdv-login__card .hf405-anchor-field button {max-width:125px;color:#0d3027;border-radius:10px;}
.pdv-login__card .field small { display:block; color:#d2e7dc; font-size:11px; line-height:1.4; }
.pdv-login__card .hf405-anchor-toggle {
  display:flex;align-items:flex-start;gap:9px;
  color:#fff;font-size:13px;font-weight:750;
  text-transform:none;letter-spacing:0;
  margin-top:6px;cursor:pointer;
}
.pdv-login__card input[type='checkbox'] {
  appearance:auto;
  width:17px;
  height:17px;
  flex:0 0 17px;
  accent-color:#18c96e;
  margin:0;
  cursor:pointer;
}
.pdv-login__password-wrap {position:relative;}
.pdv-login__password-wrap input {padding-right:49px!important;}
.pdv-login__reveal {
  position:absolute;right:4px;top:50%;transform:translateY(-50%);
  width:39px;height:38px;padding:6px;
  border:0;border-radius:9px;background:transparent;color:#e4f8f5;
  display:grid;place-items:center;
}
.pdv-login__reveal svg {width:22px;height:22px;stroke:currentColor;}
.pdv-login__reveal:hover {background:rgba(255,255,255,.13);}
.pdv-login__card .pdv-login__submit.btn {
  min-height:55px;
  border-radius:14px;
  margin-top:5px;
  background:linear-gradient(180deg,#18c969,#058542);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 8px 18px rgba(1,20,19,.33);
  font-size:clamp(15px,1.4vw,19px);
  color:white;
  font-weight:850;
}
.pdv-login__card .pdv-login__submit.btn:hover {filter:brightness(1.07);}
.pdv-login__card .pdv-login__submit.btn:disabled {opacity:.72;}
.pdv-login__card .privacy-login-note.pdv-login__privacy {
  background:linear-gradient(110deg,rgba(209,172,29,.10),rgba(19,119,78,.25));
  border:1px solid rgba(234,197,77,.70);
  border-radius:15px;
  margin-top:16px;
  padding:13px 15px;
  color:#f5fcf7;
  font-size:12px;
  line-height:1.5;
  display:flex;
  gap:12px;
  align-items:center;
}
.pdv-login__privacy svg {width:33px;height:33px;stroke:#e9c84e; flex:0 0 33px;}
.pdv-login__privacy strong {font-size:15px;display:inline-block;margin-bottom:3px;color:#fff;}
.pdv-login__footer {
  width:100%;background:rgba(0,22,27,.84);
  padding:13px 24px;color:#e5f4e9;
  font-size:clamp(10px,.85vw,13px);
  display:flex;gap:clamp(12px,2.3vw,38px);
  justify-content:center;align-items:center;flex-wrap:wrap;
  border-top:1px solid rgba(64,213,145,.2);
}
.pdv-login__footer span + span::before {content:'│';opacity:.5;margin-right:clamp(12px,2.3vw,38px);}
/* Los iconos del fondo son ilustrativos: nunca se usan como botones reales. */
@media (max-width:1050px) {
  .pdv-login__shell {grid-template-columns:minmax(0,1fr) minmax(390px,1.02fr);gap:12px; padding:15px 14px;}
  .pdv-login__hero {min-height:650px;}
  .pdv-login__mascot {left:60%; width:210px; max-width:43%;}
  .pdv-login .login-card.pdv-login__card {padding:24px;}
}
@media (max-width:790px) {
  .pdv-login__shell {display:block;padding:0 16px 22px; flex:initial;}
  .pdv-login__hero {display:none;}
  .pdv-login__compact-brand {
    display:flex;align-items:center;justify-content:center;gap:12px;
    width:min(520px,100%);margin:0 auto;
    padding:25px 2px 20px;min-height:120px;
  }
  .pdv-login__compact-mark {display:grid;place-items:center;min-width:54px;height:54px; border-radius:15px;color:#fff;background:linear-gradient(135deg,#067c51,#29cc76);font-size:30px;}
  .pdv-login__compact-brand h2 {font-size:clamp(20px,5vw,29px);line-height:1.05;color:#fff;margin:0 0 5px;}
  .pdv-login__mascot-mobile {display:block;flex:0 0 56px;width:56px;align-self:center;pointer-events:none;}
  .pdv-login__mascot-mobile img {width:100%;height:auto;display:block;}
  .pdv-login__compact-brand p {font-size:12px;line-height:1.2;color:#bfeadd;margin:0;}
  .pdv-login .login-card.pdv-login__card {max-width:560px;border-radius:23px;padding:24px 22px;margin:0 auto;}
  .pdv-login__footer {font-size:10px;gap:10px;padding:15px;}
  .pdv-login__footer span + span::before {margin-right:10px;}
}
@media (max-width:410px) {
  .pdv-login__shell {padding:0 10px 13px;}
  .pdv-login__compact-brand {padding:15px 6px;}
  .pdv-login__compact-brand h2 {font-size:20px;}
  .pdv-login__compact-mark {min-width:44px;height:44px;}
  .pdv-login__mascot-mobile {flex-basis:70px;width:70px;}
  .pdv-login .login-card.pdv-login__card {padding:19px 14px;border-radius:18px;}
  .pdv-login__card-head {gap:10px;margin-bottom:17px;}
  .pdv-login__shield {width:44px;height:44px;flex-basis:44px;}
  .pdv-login__shield svg {width:33px;height:33px;}
  .pdv-login__card h1 {font-size:24px;}
  .pdv-login__footer span:nth-child(2),.pdv-login__footer span:nth-child(3) {display:none;}
}
@media (prefers-reduced-motion:reduce) {
  .pdv-login__mascot {animation:none!important;transform:none!important;}
  .pdv-login__card .pdv-login__submit.btn:hover {transform:none;}
}
