/* ===== IT LOGIN (usa var(--brand)) ===== */

.it-login, .it-login * { box-sizing: border-box; }
.it-login a, .it-login button, .it-login input, .it-login label{
  font: inherit !important; color: inherit; text-decoration: none;
  background: none !important; border: none; outline: none;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.it-login input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important}

/* Layout / fondo */
.it-login{
  position: relative;
  min-height: 100vh;
  padding: 20px 16px 28px;
  color: #ffffff;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: hidden;
  background: #000000;
}
.it-login .bgwrap{
  position: absolute; inset: 0; z-index: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  background: #000000;
}
.it-login .bgwrap img{
  width: 100%; height: 100%;
  object-fit: contain; object-position: center top;
  display: block; opacity: .95;
}
.it-login .shade{
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.92) 100%);
}

/* Offset del formulario */
.it-login .content{ position: relative; z-index: 2; max-width: 470px; margin: 0 auto; padding-top: 48vh; }
@media (min-width:480px){  .it-login .content{ padding-top:46vh; } }
@media (min-width:768px){  .it-login .content{ padding-top:44vh; } }
@media (min-width:1024px){ .it-login .content{ padding-top:42vh; } }

.it-title{ font-weight: 900; font-size: 22px; letter-spacing: .4px; margin: 0 2px 12px; }

/* Campos */
.it-field{ margin-top: 10px; }
.it-label{ display: block; font-size: .82rem; font-weight: 700; margin: 0 0 6px; opacity: .92; }

.it-input{
  width: 100%; height: 54px; line-height: 54px;
  padding: 0 44px 0 14px;
  color: #ffffff;
  background: rgba(8,9,14,.55);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: border-color .12s ease, box-shadow .12s ease;
  font-size: 16px;
}
.it-input::placeholder{ color: rgba(255,255,255,.65); }
.it-input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18);
}

/* Ojo de password */
.it-passwrap, .it-inputwrap { position: relative; }
.it-passwrap .it-input, .it-inputwrap .it-input { padding-right: 44px; }

.it-passwrap .it-eye, .it-inputwrap .it-eye{
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  background: transparent !important; border: none !important; box-shadow: none !important;
  line-height: 0; z-index: 1;
}
.it-passwrap .it-eye svg, .it-inputwrap .it-eye svg{
  display: block; width: 20px; height: 20px;
  stroke: rgba(var(--brand-rgb), .70); stroke-width: 2; fill: none; pointer-events: none;
}
.it-passwrap .it-eye::after, .it-inputwrap .it-eye::after{
  --slash-w: 22px; --nudge-x: 12px; --nudge-y: 4px;
  content: ""; position: absolute; left: 50%; top: 50%;
  width: var(--slash-w); height: 2px; background: rgba(var(--brand-rgb), .70); border-radius: 1px;
  transform: translate(calc(-50% + var(--nudge-x)), calc(-50% + var(--nudge-y))) rotate(-45deg);
  transform-origin: center; pointer-events: none; opacity: 0;
}
.it-passwrap .it-eye.on::after, .it-inputwrap .it-eye.on::after{ opacity: 1; }

/* Recordarme + Olvidaste tu contraseña */
.it-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-top:12px; flex-wrap:wrap; min-width:0;
}
.it-remember{ display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; position:relative; }
.switch{
  position:relative; width:46px; height:26px; border-radius:999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22);
}
.switch::after{
  content:""; position:absolute; top:50%; left:3px; transform:translateY(-50%);
  width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.35);
  transition:left .14s;
}
.switch-input{ position:absolute; inset:0; opacity:0; }
.switch-input:checked + .switch{ background: var(--brand); border-color: var(--brand); }
.switch-input:checked + .switch::after{ left:23px; }
.remember-label{ font-weight:700; font-size:.9rem; white-space:nowrap; }

/* Link “¿Olvidaste tu contraseña?” */
.it-forgot{
  margin-left: auto; flex: 0 0 auto;
  max-width: clamp(8.2em, 22vw, 9.4em);
  font-size: clamp(12px, 2.6vw, 13px);
  line-height: 1.1; color: rgba(var(--brand-rgb), .75); font-weight: 700;
  text-align: right; white-space: normal; word-break: break-word;
}
@media (max-width: 380px){
  .it-row{ row-gap: 6px; }
  .it-forgot{ width: 100%; text-align: right; order: 2; }
  .it-remember{ order: 1; }
}
@media (min-width: 600px) and (max-width: 920px){
  .it-forgot{ max-width: 9em; }
}

/* Botón */
.it-submit{
  display:block; width:100%; height:50px; margin-top:14px;
  border-radius:16px !important;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 100%) !important;
  color: #fff !important; font-weight:900; letter-spacing:.2px;
  border: 1px solid rgba(var(--brand-rgb), .65) !important;
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .28), 0 0 0 1px rgba(var(--brand-rgb), .10);
  cursor:pointer; user-select:none; font-size:16px;
}
.it-submit:hover, .it-submit:active, .it-submit:focus{
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 100%) !important; color:#fff !important;
}
.it-submit:active{ transform: translateY(1px); }

/* Errores */
.it-errors{
  margin:10px 2px 0; padding:10px 12px; border-radius:12px;
  background: rgba(255,93,93,.14);
  border:1px solid rgba(255,255,255,.28);
  color: #ffecec; font-size:.9rem;
}
