/* Asset V authentication gate.
   A hidden/closed gate must never render after the dashboard as stray content. */
.av-auth-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  padding: clamp(20px,5vh,56px) 20px;
  background: radial-gradient(ellipse at 20% 15%,rgba(18,188,195,.13),transparent 55%),
              linear-gradient(145deg,#e9f4f6,#f6fafb 65%,#e6f1f4);
  color: #183443;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  line-height: 1.55;
}
.av-auth-gate.open {
  display: grid;
  align-content: center;
  justify-items: center;
}
.av-auth-card {
  width: min(100%, 530px);
  margin: auto;
  padding: clamp(25px,4vw,42px);
  border: 1px solid #d9e8eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(13,54,69,.13);
}
.av-auth-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e3edef;
}
.av-auth-brand img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
}
.av-auth-brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  color: #123746;
}
.av-auth-brand span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #67808c;
}
.av-auth-panel { display: flex; flex-direction: column; gap: 16px; }
.av-auth-panel.hidden { display: none !important; }
.av-auth-kicker {
  display: block;
  color: #078b99;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .12em;
}
.av-auth-panel h1 {
  margin: 0;
  color: #102f3e;
  font-size: clamp(28px,4vw,36px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.av-auth-panel p {
  margin: 0 0 6px;
  color: #607985;
  font-size: 15px;
  line-height: 1.7;
}
.av-auth-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #355866;
  font-size: 14px;
  font-weight: 650;
}
.av-auth-panel label input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 11px 13px;
  border: 1px solid #c3d9df;
  border-radius: 11px;
  background: #fff;
  color: #163844;
  font: inherit;
  font-size: 16px;
}
.av-auth-panel label input:focus-visible,
.av-auth-panel button:focus-visible {
  outline: 3px solid #007f91;
  outline-offset: 2px;
}
.av-auth-panel .button.wide {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 18px;
}
.av-auth-error {
  min-height: 1.35em;
  color: #a3323b;
  font-size: 13px;
}
.av-auth-error:empty { min-height: 0; }
.av-auth-loader {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-auth-loader i {
  width: 25px;
  height: 25px;
  border: 3px solid #d2ecee;
  border-top-color: #058d9c;
  border-radius: 50%;
  animation: auth-gate-spin .9s linear infinite;
}
@keyframes auth-gate-spin { to { transform: rotate(360deg); } }
@media(max-width: 520px) {
  .av-auth-gate { padding: 15px; align-content: center; }
  .av-auth-card { border-radius: 16px; padding: 24px 20px; }
  .av-auth-brand { margin-bottom: 22px; padding-bottom: 22px; }
  .av-auth-panel { gap: 14px; }
}
@media(prefers-reduced-motion: reduce) {
  .av-auth-loader i { animation: none; }
}


/* Official Asset V Roads lockup: preserve the full uploaded wordmark. */
.av-auth-brand .av-auth-official-logo {
  width: 184px;
  height: auto;
  max-width: 48%;
  flex: 0 1 184px;
  object-fit: contain;
}
.av-auth-brand > div { min-width: 0; }
@media(max-width: 520px){
  .av-auth-brand { flex-direction: column; align-items: flex-start; }
  .av-auth-brand .av-auth-official-logo { width: 165px; max-width: 100%; flex-basis: auto; }
}
