/**
 * Browser website auth — polish classic nyaytrack.css panel for Phase-2 markup.
 * Capacitor app does not load this file.
 */

/* Full-bleed force bar across the 2-column grid */
body.nyay-auth.nyay-auth-web .nyay-force-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
}

/* Language row — compact, institutional */
body.nyay-auth.nyay-auth-web .ny-lang {
  display: flex;
  gap: 0;
  margin: 0 auto 14px;
  max-width: 100%;
  border: 1px solid #0b1c2c;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .ny-lang-chip {
  flex: 1;
  min-height: 36px;
  margin: 0;
  padding: 8px 6px;
  border: 0;
  border-right: 1px solid rgba(11, 28, 44, 0.18);
  border-radius: 0;
  background: transparent;
  color: #5c6b7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}
body.nyay-auth.nyay-auth-web .ny-lang-chip:last-child {
  border-right: 0;
}
body.nyay-auth.nyay-auth-web .ny-lang-chip.active,
body.nyay-auth.nyay-auth-web .ny-lang-chip[aria-pressed="true"] {
  background: #0b1c2c;
  color: #fff;
}

/* Sign in / Guest — match classic portal switch */
body.nyay-auth.nyay-auth-web .na-tabs,
body.nyay-auth.nyay-auth-web .nyay-portal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid #0b1c2c;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .na-tabs a,
body.nyay-auth.nyay-auth-web .nyay-portal-switch a {
  text-align: center;
  padding: 12px 8px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1c2c;
  background: transparent;
  border-right: 1px solid rgba(11, 28, 44, 0.18);
}
body.nyay-auth.nyay-auth-web .na-tabs a:last-child,
body.nyay-auth.nyay-auth-web .nyay-portal-switch a:last-child {
  border-right: 0;
}
body.nyay-auth.nyay-auth-web .na-tabs a.active,
body.nyay-auth.nyay-auth-web .nyay-portal-switch a.active {
  background: #0b1c2c;
  color: #fff;
}

/* Multi-role portal chooser cards */
body.nyay-auth.nyay-auth-web .na-portal-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 10px;
  padding: 14px 16px;
  min-height: 64px;
  border: 1px solid #0b1c2c;
  border-radius: 0;
  background: #fff;
  color: #0b1c2c;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.nyay-auth.nyay-auth-web .na-portal-btn:hover {
  background: #f7f9fc;
  border-color: #c5a028;
}
body.nyay-auth.nyay-auth-web .na-portal-btn:focus-visible {
  outline: 2px solid #c5a028;
  outline-offset: 2px;
}
body.nyay-auth.nyay-auth-web .na-portal-btn strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0b1c2c;
  margin: 0 0 4px;
  line-height: 1.25;
}
body.nyay-auth.nyay-auth-web .na-portal-btn span {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5c6b7a;
  line-height: 1.35;
}
body.nyay-auth.nyay-auth-web .na-portal-btn:disabled,
body.nyay-auth.nyay-auth-web .na-portal-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Alerts inside the dossier panel */
body.nyay-auth.nyay-auth-web .na-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  background: #eef6f1;
  border: 1px solid #b7dfcd;
  color: #0b1c2c;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .na-alert.warn {
  background: #fff8e6;
  border-color: #e8d48b;
  color: #5c4810;
}
body.nyay-auth.nyay-auth-web .na-alert.danger {
  background: #fde8e8;
  border-color: #f0c2bc;
  color: #9b1c1c;
}
body.nyay-auth.nyay-auth-web .na-cooldown-bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(11, 28, 44, 0.1);
  overflow: hidden;
}
body.nyay-auth.nyay-auth-web .na-cooldown-bar span {
  display: block;
  height: 100%;
  background: #b8952c;
}

body.nyay-auth.nyay-auth-web .na-note {
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5c6b7a;
  background: rgba(11, 28, 44, 0.04);
  border-left: 3px solid #b8952c;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .na-note strong {
  color: #0b1c2c;
}

body.nyay-auth.nyay-auth-web .na-links {
  margin-top: 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .na-links a {
  font-weight: 700;
  color: #0b1c2c;
  text-decoration: none;
}
body.nyay-auth.nyay-auth-web .na-links a:hover {
  text-decoration: underline;
}

/* Keep primary CTA on classic gold button, not flat app tokens */
body.nyay-auth.nyay-auth-web .ny-btn,
body.nyay-auth.nyay-auth-web .btn.ny-btn,
body.nyay-auth.nyay-auth-web .btn.nyay-btn {
  width: 100%;
}
body.nyay-auth.nyay-auth-web .ny-btn-primary,
body.nyay-auth.nyay-auth-web .btn.ny-btn-primary {
  /* defer to .nyay-btn gold from nyaytrack.css when both present */
}
body.nyay-auth.nyay-auth-web button.nyay-btn.ny-btn-primary,
body.nyay-auth.nyay-auth-web .btn.nyay-btn {
  border-radius: 0;
  background: linear-gradient(180deg, #e8c960 0%, #c4a035 48%, #9a7a22 100%);
  color: #0a0a08;
  font-weight: 800;
  border: 1px solid #6e5818;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  min-height: 54px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px rgba(154, 122, 34, 0.35);
}
body.nyay-auth.nyay-auth-web .ny-btn-ghost,
body.nyay-auth.nyay-auth-web .nyay-btn-outline,
body.nyay-auth.nyay-auth-web .btn.nyay-btn-outline {
  width: 100%;
  background: transparent !important;
  color: #0b1c2c !important;
  border: 1px solid #0b1c2c !important;
  border-radius: 0;
  font-weight: 700;
  min-height: 48px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* OTP digit boxes */
body.nyay-auth.nyay-auth-web .ny-otp {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 6px;
}
body.nyay-auth.nyay-auth-web .ny-otp-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
body.nyay-auth.nyay-auth-web .ny-otp-box {
  flex: 1;
  min-height: 48px;
  max-width: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid #b8c2d0;
  border-radius: 0;
  background: transparent;
  color: #0b1c2c;
}
body.nyay-auth.nyay-auth-web .ny-otp-box:focus {
  outline: none;
  border-bottom-color: #c4a035;
  background: linear-gradient(180deg, transparent 60%, rgba(196, 160, 53, 0.08));
}

/* Footer — readable, not shouting */
body.nyay-auth.nyay-auth-web .nyay-auth-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #5c6b7a;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
  position: relative;
  z-index: 2;
}
body.nyay-auth.nyay-auth-web .nyay-auth-foot a {
  color: #0b1c2c;
  font-weight: 700;
  text-decoration: none;
}
body.nyay-auth.nyay-auth-web .nyay-auth-foot a:hover {
  text-decoration: underline;
}

/* Never show in-app update / “get the app” overlay on the website skin */
body.nyay-auth.nyay-auth-web .nyay-update-modal,
body.nyay-auth.nyay-auth-web #nyayAppUpdateRoot,
body.nyay-auth.nyay-auth-web [data-nyay-update],
body.nyay-auth.nyay-auth-web .nyau-backdrop,
body.nyay-auth.nyay-auth-web .nyau-modal {
  display: none !important;
}

@media (max-width: 960px) {
  body.nyay-auth.nyay-auth-web .nyay-force-bar {
    position: sticky;
  }
}
