/* NyayTrack — Gadchiroli Police brand */
:root {
  --nyay-ink: #0c1f18;
  --nyay-forest: #134e3a;
  --nyay-leaf: #1b6b4a;
  --nyay-mint: #d8efe4;
  --nyay-gold: #c9a227;
  --nyay-gold-soft: #f3e6b8;
  --nyay-fog: #f3f7f5;
  --nyay-card: rgba(255, 255, 255, 0.94);
  --nyay-shadow: 0 24px 60px rgba(12, 31, 24, 0.28);
}

.nyay-auth {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--nyay-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 10%, rgba(201, 162, 39, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 60% at 90% 90%, rgba(27, 107, 74, 0.45), transparent 55%),
    linear-gradient(145deg, #0c1f18 0%, #134e3a 45%, #0a2920 100%);
  position: relative;
  overflow: hidden;
}

.nyay-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.35;
}

.nyay-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--nyay-card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--nyay-shadow);
  position: relative;
  z-index: 1;
  animation: nyay-rise 0.7s ease both;
}

@keyframes nyay-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.nyay-hero {
  background:
    linear-gradient(160deg, rgba(12, 31, 24, 0.72), rgba(19, 78, 58, 0.88)),
    url("../360_F_198247162_JwrVkhqowZb4NJC24156nV6QYRhsV8Qf.jpg") center/cover;
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  position: relative;
}

.nyay-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(0,0,0,0.25));
  pointer-events: none;
}

.nyay-brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
}

.nyay-brand-mark span {
  color: var(--nyay-gold);
}

.nyay-tag {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 28px;
  max-width: 28ch;
  line-height: 1.45;
}

.nyay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.nyay-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  z-index: 1;
}

.nyay-panel {
  padding: 42px 38px;
  background: #fff;
}

.nyay-panel .logo {
  width: 72px;
  height: auto;
  margin-bottom: 14px;
}

.nyay-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  margin: 0 0 4px;
  color: var(--nyay-ink);
}

.nyay-panel .sub {
  color: #5a7368;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.nyay-panel .form-control,
.nyay-panel .form-floating > .form-control {
  border: 1.5px solid #d5e3dc;
  border-radius: 12px;
  background: var(--nyay-fog);
  min-height: 52px;
}

.nyay-panel .form-control:focus {
  border-color: var(--nyay-leaf);
  box-shadow: 0 0 0 3px rgba(27, 107, 74, 0.15);
  background: #fff;
}

.nyay-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--nyay-gold) 0%, #b88912 100%);
  color: #1a1404;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.nyay-btn:hover {
  transform: translateY(-1px);
  color: #1a1404;
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.45);
}

.nyay-btn-dark {
  background: linear-gradient(135deg, var(--nyay-forest) 0%, #0c1f18 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 31, 24, 0.3);
}

.nyay-btn-dark:hover {
  color: #fff;
}

.nyay-demo {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--nyay-mint);
  border: 1px solid #b7dccb;
  font-size: 0.8rem;
  text-align: left;
  color: #1f4d3a;
}

.nyay-demo code {
  background: rgba(255,255,255,0.7);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.nyay-links {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #5a7368;
}

.nyay-links a {
  color: var(--nyay-forest);
  font-weight: 600;
  text-decoration: none;
}

.nyay-links a:hover {
  text-decoration: underline;
}

.nyay-otp-show {
  background: #10271e;
  color: #9dffc2;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.nyay-otp-show strong {
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  color: #fff;
}

@media (max-width: 860px) {
  .nyay-shell {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .nyay-hero {
    min-height: auto;
    padding: 28px 24px;
  }
  .nyay-panel {
    padding: 28px 22px;
  }
}
