/* SIBA 1.0.1 · Acceso a pantalla completa. */
@font-face { font-family: "SIBA DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-400.ttf") format("truetype"); }
@font-face { font-family: "SIBA DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-500.ttf") format("truetype"); }
@font-face { font-family: "SIBA DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-700.ttf") format("truetype"); }
#loginView.pg-login {
  --siba-ink: #050708;
  --siba-orange: #f58220;
  --siba-muted: #6b7074;
  --siba-error: #b42318;
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  color: var(--siba-ink) !important;
  box-shadow: none;
  font-family: "SIBA DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
#loginView.pg-login.hidden { display: none !important; }
.pg-login *, .pg-login *::before, .pg-login *::after { box-sizing: border-box; }
#loginView.pg-login .pg-story {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #050708 !important;
  color: #fff;
}
#loginView.pg-login .pg-story::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -3%;
  background: url("../img/siba-login-factory.jpg") center center / cover no-repeat !important;
  filter: grayscale(1);
  opacity: .68;
  transform: scale(1.04);
  animation: siba-photo-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}
#loginView.pg-login .pg-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #050708b8 0%, #05070824 40%, #050708db 100%) !important;
  clip-path: none;
  box-shadow: none !important;
  pointer-events: none;
}
#loginView .pg-logo {
  position: absolute;
  top: clamp(28px, 5vh, 56px);
  left: clamp(32px, 4.5vw, 72px);
  display: block;
  width: 200px;
  max-width: calc(100% - 64px);
  height: 100px;
  object-fit: cover;
  object-position: center;
  animation: siba-reveal 650ms ease-out both;
}
.siba-brand-line {
  position: absolute;
  right: 32px;
  bottom: clamp(40px, 8vh, 88px);
  left: clamp(32px, 4.5vw, 72px);
  margin: 0;
  padding-top: 28px;
  color: #fff;
  font-size: clamp(34px, 4.3vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
  animation: siba-reveal 750ms 100ms ease-out both;
}
.siba-brand-line::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 2px; background: var(--siba-orange); transform-origin: left; animation: siba-line-enter 650ms 300ms ease-out both; }
#loginView.pg-login .pg-access {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 76px clamp(36px, 6vw, 100px) 90px;
  background: #fff !important;
}
.pg-access-inner { width: min(100%, 380px); animation: siba-reveal 550ms 100ms ease-out both; }
.siba-access-caption { display: block; margin-bottom: 19px; color: #6b7074; font-size: 11px; font-weight: 500; letter-spacing: .16em; }
#loginForm.pg-form { display: flex; flex-direction: column; gap: 22px; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#loginView.pg-login .pg-login-title { margin: 0 0 24px; color: var(--siba-ink) !important; font-family: inherit; font-size: 34px !important; font-weight: 500 !important; line-height: 1.15; letter-spacing: -.04em !important; }
.pg-field { position: relative; width: 100%; min-width: 0; animation: siba-reveal 450ms 160ms ease-out both; }
.pg-field:nth-of-type(2) { animation-delay: 230ms; }
#loginView.pg-login .pg-form input,
#loginView.pg-login .pg-form input:focus,
#loginView.pg-login .pg-form input:focus-visible {
  display: block;
  width: 100%;
  height: 62px;
  min-width: 0;
  padding: 24px 0 9px;
  border: 0 !important;
  border-bottom: 1px solid #c9ccce !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  color: var(--siba-ink) !important;
  font: inherit;
  font-size: 16px !important;
  line-height: 1.3;
  box-shadow: none !important;
  transition: border-color 180ms ease;
}
#loginView.pg-login .pg-form input:hover { border-bottom-color: #8a8f93 !important; }
#loginView.pg-login .pg-form .pg-field input:focus { border-bottom-color: var(--siba-ink) !important; background: transparent !important; }
.pg-form input::placeholder { color: transparent; opacity: 0; }
#loginView.pg-login .pg-form .pg-floating-label { position: absolute; top: 22px; left: 0; color: #6b7074 !important; font-size: 15px; line-height: 18px; font-weight: 400 !important; pointer-events: none; transition: top 180ms ease, font-size 180ms ease, color 180ms ease; }
#loginView.pg-login .pg-form input:focus ~ .pg-floating-label,
#loginView.pg-login .pg-form input:not(:placeholder-shown) ~ .pg-floating-label,
#loginView.pg-login .pg-form input:-webkit-autofill ~ .pg-floating-label { top: 3px; color: var(--siba-ink) !important; font-size: 11px; font-weight: 500 !important; }
#loginView.pg-login .pg-form input:-webkit-autofill { -webkit-text-fill-color: var(--siba-ink); -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }
#loginView.pg-login .pg-field-line { position: absolute; display: block; left: 0; right: 0; bottom: 0; height: 2px; background: var(--siba-orange) !important; box-shadow: none !important; transform: scaleX(0); transform-origin: left; transition: transform 230ms ease; pointer-events: none; }
.pg-field:focus-within .pg-field-line { transform: scaleX(1); }
#loginView.pg-login .pg-password input { padding-right: 48px; }
#loginView.pg-login .pg-password button { position: absolute; top: 10px; right: -8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #6b7074 !important; cursor: pointer; transition: color 180ms ease, background-color 180ms ease; }
#loginView.pg-login .pg-password button:hover { background: #05070805; color: #050708 !important; }
.pg-password button i { position: relative; display: block; width: 19px; height: 12px; border: 1.5px solid currentColor; border-radius: 75% 12%; transform: rotate(45deg); }
.pg-password button i::before { content: "" !important; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.pg-password button[aria-pressed="true"]::after { content: ""; position: absolute; width: 24px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
#loginView.pg-login .pg-form .pg-submit { position: relative; display: grid; place-items: center; width: 100%; min-height: 54px !important; margin: 13px 0 0; padding: 0 48px; border: 1px solid #050708 !important; border-radius: 3px !important; background: #050708 !important; color: #fff !important; font: inherit; font-size: 15px !important; font-weight: 500; cursor: pointer; box-shadow: none !important; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; animation: siba-reveal 450ms 300ms ease-out both; }
#loginView .pg-submit::after { content: ""; position: absolute; right: 23px; width: 7px; height: 7px; border-top: 1.5px solid var(--siba-orange); border-right: 1.5px solid var(--siba-orange); transform: rotate(45deg); transition: transform 180ms ease, border-color 180ms ease; }
#loginView.pg-login .pg-form .pg-submit:hover:not(:disabled) { background: var(--siba-orange) !important; border-color: var(--siba-orange) !important; color: #050708 !important; }
#loginView .pg-submit:hover:not(:disabled)::after { border-color: #050708; transform: translateX(3px) rotate(45deg); }
#loginView.pg-login .pg-form .pg-submit:active:not(:disabled) { background: #e87616 !important; border-color: #e87616 !important; }
.pg-form .pg-submit:disabled { cursor: default; opacity: .65; }
.pg-form .pg-submit.is-loading { cursor: wait; opacity: 1; }
.pg-button-spinner { display: none; position: absolute; width: 20px; height: 20px; border: 2px solid #ffffff50; border-top-color: #fff; border-radius: 50%; }
.pg-form.is-checking .pg-submit span, .pg-form.is-checking .pg-submit::after { opacity: 0; }
.pg-form.is-checking .pg-button-spinner { display: block; animation: siba-spin 750ms linear infinite; }
#loginView.pg-login .pg-form .pg-submit:focus-visible,
#loginView.pg-login .pg-password button:focus-visible,
#loginView .pg-login-alert button:focus-visible { outline: 2px solid #050708 !important; outline-offset: 4px !important; }
#loginView.pg-login .pg-form.has-error .pg-field input { border-bottom-color: var(--siba-error) !important; }
#loginView.pg-login .pg-form.has-error .pg-field-line { background: var(--siba-error) !important; }
#loginView.pg-login .pg-form.has-error .pg-floating-label { color: var(--siba-error) !important; }
.pg-login-alert { position: relative; display: none; grid-template-columns: 20px 1fr 28px; align-items: start; gap: 9px; width: 100%; margin-top: 20px; padding: 13px 10px 13px 14px; border: 1px solid #f2c9c5; border-radius: 4px; background: #fff4f2; color: #8c241c; font-size: 13px; line-height: 1.5; }
.pg-login-alert.is-visible { display: grid; animation: siba-reveal 180ms ease-out both; }
.pg-alert-icon { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid currentColor; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 500; }
.pg-alert-icon::before { content: "!" !important; }
.pg-login-alert button { position: relative; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: currentColor; cursor: pointer; }
.pg-login-alert button::before, .pg-login-alert button::after { content: ""; position: absolute; width: 13px; height: 1px; background: currentColor; transform: rotate(45deg); }
.pg-login-alert button::after { transform: rotate(-45deg); }
.pg-login-alert button i { display: none; }
.pg-login-alert button:hover { background: #b4231810; }
.siba-login-credit { position: absolute; bottom: 25px; left: 0; width: 100%; text-align: center; color: #8a8f93; font-size: 11px; letter-spacing: .02em; }
@keyframes siba-reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes siba-line-enter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes siba-photo-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1%); } }
@keyframes siba-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  #loginView.pg-login .pg-access { padding-right: 38px; padding-left: 38px; }
  .siba-brand-line { font-size: 44px; }
}
@media (max-width: 760px) {
  #loginView.pg-login { grid-template-columns: minmax(0, 1fr); }
  #loginView.pg-login .pg-story { min-height: 152px; }
  #loginView .pg-logo { top: 28px; left: 28px; width: 180px; height: 90px; }
  .siba-brand-line { display: none; }
  #loginView.pg-login .pg-access { min-height: calc(100vh - 152px); min-height: calc(100dvh - 152px); padding: 42px 28px 70px; }
  #loginView.pg-login .pg-login-title { font-size: 30px !important; margin-bottom: 15px; }
  #loginView.pg-login .pg-story::before { animation: none; }
}
@media (max-height: 650px) and (min-width: 761px) {
  #loginView.pg-login .pg-access { padding-top: 45px; padding-bottom: 65px; }
  #loginView .pg-logo { top: 24px; width: 180px; height: 90px; }
  .siba-brand-line { bottom: 34px; font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #loginView *, #loginView *::before, #loginView *::after { animation: none !important; transition: none !important; }
}

