/* Immersive company login, optimized for the native iPhone shell. */
@media (max-width: 760px) {
html.auth-view-active,
html.auth-view-active body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #18191e;
}
html.auth-view-active body {
  position: fixed;
  inset: 0;
}
#authView {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  color: #f7f8fc;
  background: #18191e;
}
#authView .auth-layout {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(44, 143, 214, .13), transparent 27%),
    linear-gradient(180deg, #1d1e23 0%, #18191e 58%, #15161a 100%);
  box-shadow: none;
}
#authView .auth-layout::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 28%);
}
#authView .auth-layout::after { display: none; }
#authView .auth-brand,
#authView .auth-tagline { display: none; }
#authView .auth-login-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 500px);
  max-width: 500px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0 auto;
  padding:
    max(32px, env(safe-area-inset-top))
    clamp(24px, 7vw, 36px)
    max(24px, env(safe-area-inset-bottom));
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
#authView button,
#authView input,
#authView a {
  touch-action: manipulation;
}
#authView .auth-login-brand {
  align-items: center;
  gap: 12px;
  margin: clamp(52px, 11svh, 118px) 0 clamp(56px, 9svh, 98px);
  text-align: center;
}
#authView .auth-login-brand img {
  width: clamp(104px, 29vw, 126px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .28));
}
#authView .auth-login-kicker {
  color: rgba(248, 250, 255, .9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}
#authView .auth-login-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
}
#authView #authPanelSubtitle:empty,
#authView #authEmbedBrief:empty { display: none; }
#authView .auth-stage {
  display: flex;
  flex: 1;
  min-height: 0;
  margin-top: 0;
}
#authView .auth-stage-panel.active {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}
#authView .auth-stage-panel.hidden { position: absolute; inset: 0; }
#authView .auth-login-fields {
  gap: 14px;
  margin-top: 0;
}
#authView .auth-login-card .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#authView .auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
#authView .auth-input-icon { display: none; }
#authView .auth-login-card .auth-input-wrap input,
#authView .auth-reset-panel input {
  min-height: 64px;
  padding: 16px 20px;
  border: 1.5px solid #4a4d56;
  border-radius: 18px;
  background: rgba(25, 26, 31, .72);
  color: #f8f9fc;
  -webkit-text-fill-color: #f8f9fc;
  caret-color: #4aa7ff;
  font-size: 17px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}
#authView .auth-login-card .password-input-wrap input { padding-right: 58px; }
#authView .auth-login-card input::placeholder { color: #969aa5; opacity: 1; }
#authView .auth-login-card input:focus {
  border-color: #4199f2;
  box-shadow: 0 0 0 3px rgba(42, 137, 231, .17);
}
#authView .auth-login-card input:-webkit-autofill,
#authView .auth-login-card input:-webkit-autofill:hover,
#authView .auth-login-card input:-webkit-autofill:focus {
  border-color: #4a4d56;
  -webkit-text-fill-color: #f8f9fc;
  -webkit-box-shadow: 0 0 0 1000px #1b1c21 inset;
  transition: background-color 9999s ease-out 0s;
}
#authView .password-visibility-toggle {
  right: 13px;
  top: calc(50% - 19px);
  width: 38px;
  height: 38px;
  background: transparent;
  color: #a7acb6;
}
#authView .password-visibility-toggle:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  box-shadow: none;
}
#authView .auth-actions {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
#authView .auth-actions .primary-button {
  min-height: 60px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2388ee, #0870df);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 93, 205, .23);
  font-size: 17px;
  font-weight: 800;
}
#authView .auth-actions .primary-button:hover {
  background: linear-gradient(180deg, #3296fa, #117aeb);
}
#authView .auth-status {
  min-height: 0;
  color: #f3b36f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
#authView #authStatus:empty { display: none; }
#authView .auth-secondary-link {
  align-self: center;
  min-height: 34px;
  margin: 0;
  padding: 5px 0;
  color: #f6f7fa;
  font-size: 15px;
  font-weight: 800;
}
#authView .auth-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  margin-top: auto;
  padding-top: clamp(42px, 8svh, 82px);
  border: 0;
  color: #969ba7;
}
#authView .auth-card-footer svg { display: none; }
#authView .auth-card-footer .auth-secondary-link {
  align-self: stretch;
  color: #aeb3bd;
  font-size: 13px;
  text-align: center;
}
#authView .auth-card-footer .auth-secondary-link[href="/soporte"] {
  order: -1;
  min-height: 56px;
  padding: 15px 20px;
  border: 1.5px solid #3497f6;
  border-radius: 999px;
  color: #46a3ff;
  font-size: 16px;
}
#authView .auth-reset-panel {
  min-height: 0;
  padding: 24px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#authView .auth-reset-panel-title {
  color: #fff;
  font-size: 26px;
  text-align: center;
}
#authView .auth-reset-panel .muted {
  margin: 6px auto 24px;
  max-width: 360px;
  color: #a8adb7;
  text-align: center;
}
#authView .auth-reset-panel .field-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 8px;
  overflow: visible;
  clip: auto;
  color: #c5c9d1;
  white-space: normal;
}
#authView .auth-inline-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}
#authView .auth-inline-actions .primary-button,
#authView .auth-inline-actions .secondary-button {
  width: 100%;
  min-height: 56px;
  margin: 0;
  border-radius: 999px;
}
#authView .auth-inline-actions .secondary-button {
  border: 1.5px solid #4a4d56;
  background: transparent;
  color: #f4f5f8;
}
}

@media (max-width: 760px) and (max-height: 720px) {
  #authView .auth-login-brand {
    margin-top: 24px;
    margin-bottom: 30px;
  }
  #authView .auth-login-brand img { width: 88px; }
  #authView .auth-card-footer { padding-top: 28px; }
}
