/* e-Abhijog — officer login & account recovery */

:root {
  --auth-navy: #0f1b2d;
  --auth-navy-deep: #0b1220;
  --auth-orange: #ea580c;
  --auth-orange-hover: #c2410c;
  --auth-saffron: #f97316;
  --auth-border: #e2e8f0;
  --auth-muted: #64748b;
  --auth-link: #1e3a5f;
  --auth-odia-font: "Noto Sans Oriya", "Segoe UI", system-ui, sans-serif;
}

.auth-body {
  margin: 0;
  font-family: var(--auth-odia-font);
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}

.auth-body *,
.auth-body *::before,
.auth-body *::after {
  box-sizing: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  /* Brand strip — scene + ticker, no vertical scroll */
  .auth-page {
    grid-template-columns: minmax(440px, 560px) minmax(0, 1fr);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
}

/* Left panel */
.auth-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--auth-navy) 0%, var(--auth-navy-deep) 100%);
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.auth-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #ea580c, #a855f7, #2563eb, #15803d);
  pointer-events: none;
  z-index: 2;
}

.auth-odisha-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("/static/images/auth-pattachitra-pattern.svg");
  background-size: 80px 80px;
  pointer-events: none;
}

.auth-konark-watermark {
  position: absolute;
  right: -12px;
  bottom: 72px;
  width: min(120px, 35vw);
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  animation: auth-wheel-spin 120s linear infinite;
}

@media (min-width: 960px) {
  .auth-konark-watermark {
    display: none;
  }
}

@keyframes auth-wheel-spin {
  to { transform: rotate(360deg); }
}

.auth-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 85%, rgb(234 88 12 / 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgb(59 130 246 / 0.08) 0%, transparent 45%);
  animation: auth-glow-shift 8s ease-in-out infinite alternate;
}

@keyframes auth-glow-shift {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.auth-panel-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
}

.auth-panel-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 6px 18px rgb(124 58 237 / 0.35);
  border: none;
}

.auth-panel-icon-wheel {
  background: linear-gradient(145deg, #1e3a5f, #0f2744);
  padding: 0;
}

.auth-panel-icon-wheel img {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-panel-gov {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.1rem;
  font-family: var(--auth-odia-font);
}

.auth-panel-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.auth-district-ticker {
  margin-top: 0.85rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.auth-ticker-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.auth-ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: auth-ticker-scroll 28s linear infinite;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}

.auth-ticker-track span {
  white-space: nowrap;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.auth-ticker-track span:nth-child(3n+1) { border-color: rgb(234 88 12 / 0.25); color: #fdba74; }
.auth-ticker-track span:nth-child(3n+2) { border-color: rgb(21 128 61 / 0.3); color: #86efac; }

@keyframes auth-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.auth-panel-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 28rem;
  width: 100%;
  gap: 0;
}

.auth-panel-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.45;
  animation: auth-orb-float 12s ease-in-out infinite alternate;
}

.auth-orb-a {
  width: 180px;
  height: 180px;
  background: rgb(234 88 12 / 0.35);
  top: 10%;
  right: -40px;
}

.auth-orb-b {
  width: 140px;
  height: 140px;
  background: rgb(59 130 246 / 0.25);
  bottom: 18%;
  left: -30px;
  animation-delay: -4s;
}

@keyframes auth-orb-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12px, 16px) scale(1.08); }
}

.auth-panel-scene {
  margin: 1.25rem 0 0.5rem;
  position: relative;
}

.auth-scene-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  opacity: 0.92;
  animation: auth-scene-float 6s ease-in-out infinite alternate;
}

@keyframes auth-scene-float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.auth-scene-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.auth-scene-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: #cbd5e1;
}

.auth-scene-pill.accent {
  color: #fdba74;
  border-color: rgb(234 88 12 / 0.35);
  background: rgb(234 88 12 / 0.12);
}

.auth-scene-arrow {
  color: var(--auth-orange);
  font-size: 0.75rem;
}

@media (min-width: 960px) {
  .auth-panel {
    padding: 1.5rem 1.5rem 1.15rem;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
  }

  .auth-panel-brand {
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  .auth-panel-label {
    margin-bottom: 0.5rem;
  }

  .auth-panel-scene {
    display: block;
    margin: 0.45rem 0 0.2rem;
    flex-shrink: 1;
    min-height: 0;
  }

  .auth-scene-img {
    width: 100%;
    max-width: 100%;
    max-height: min(32vh, 210px);
    height: auto;
    object-fit: contain;
  }

  .auth-scene-caption {
    font-size: 0.58rem;
    margin-top: 0.4rem;
  }

  .auth-district-ticker {
    display: block;
    margin-top: 0.45rem;
    flex-shrink: 0;
  }

  .auth-panel-main {
    max-width: none;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    padding-top: 0;
    overflow: hidden;
  }

  .auth-panel-headline {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    margin-bottom: 0.45rem;
    flex-shrink: 0;
  }

  .auth-panel-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .auth-panel-stats {
    margin-top: auto;
    padding-top: 0.65rem;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .auth-stat-val {
    font-size: 1.1rem;
  }

  .auth-panel-footer {
    padding-top: 0.65rem;
    flex-shrink: 0;
  }
}

@media (min-width: 1200px) {
  .auth-page {
    grid-template-columns: minmax(480px, 620px) minmax(0, 1fr);
  }

  .auth-panel {
    padding: 1.65rem 1.75rem 1.25rem;
  }

  .auth-panel-headline {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
  }

  .auth-panel-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .auth-scene-img {
    max-height: min(36vh, 250px);
  }
}

@media (max-width: 959px) {
  .auth-panel {
    min-height: auto;
    padding: 1.25rem 1.25rem 1rem;
    overflow: hidden;
  }

  .auth-panel-brand { margin-bottom: 0.85rem; }

  .auth-panel-label { margin-bottom: 0.45rem; }

  .auth-panel-headline {
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
  }

  .auth-panel-desc {
    font-size: 0.8125rem;
    line-height: 1.42;
  }

  .auth-panel-scene {
    margin-top: 0.65rem;
  }

  .auth-scene-img {
    max-width: min(100%, 320px);
    max-height: 165px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
  }

  .auth-district-ticker {
    margin-top: 0.5rem;
  }

  .auth-panel-stats {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    gap: 0.5rem;
  }

  .auth-stat-val {
    font-size: 1.15rem;
  }

  .auth-panel-footer {
    padding-top: 0.65rem;
  }
}

.auth-panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-orange);
  margin-bottom: 1rem;
}

.auth-panel-headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.auth-panel-headline .accent { color: var(--auth-orange); }

.auth-panel-desc {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.auth-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.auth-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.auth-panel-stats > div:nth-child(1) .auth-stat-val { color: #60a5fa; }
.auth-panel-stats > div:nth-child(2) .auth-stat-val { color: #fbbf24; }
.auth-panel-stats > div:nth-child(3) .auth-stat-val { color: #4ade80; }

.auth-stat-val { font-size: 1.35rem; font-weight: 800; }

.auth-stat-foot {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.15rem;
  line-height: 1.3;
}

.auth-panel-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #4ade80;
  animation: auth-status-pulse 2s ease-in-out infinite;
}

@keyframes auth-status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(74 222 128 / 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgb(74 222 128 / 0); }
}

/* Right panel — bright, fills remaining width */
.auth-form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 3.75rem 1rem 1.5rem;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgb(59 130 246 / 0.12), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgb(234 88 12 / 0.1), transparent 50%),
    radial-gradient(ellipse 65% 50% at 70% 85%, rgb(13 148 136 / 0.08), transparent 48%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgb(168 85 247 / 0.06), transparent 45%),
    #f8fafc;
}

.auth-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgb(255 255 255 / 0.92) 0%, rgb(248 250 252 / 0.75) 45%, rgb(255 255 255 / 0.55) 100%);
  z-index: 0;
}

@media (min-width: 960px) {
  .auth-form-side {
    padding: 2rem clamp(2rem, 6vw, 5rem) 2rem;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow-y: auto;
  }
}

.auth-form-side > .auth-form-top,
.auth-form-side > .auth-form-wrap {
  position: relative;
  z-index: 2;
}

.auth-form-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.auth-form-light-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

.auth-form-light-orb--a {
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  top: 8%;
  right: 5%;
  background: rgb(59 130 246 / 0.18);
}

.auth-form-light-orb--b {
  width: min(360px, 42vw);
  height: min(360px, 42vw);
  bottom: 10%;
  left: 8%;
  background: rgb(234 88 12 / 0.14);
}

.auth-form-light-orb--c {
  width: min(280px, 35vw);
  height: min(280px, 35vw);
  top: 45%;
  left: 35%;
  background: rgb(13 148 136 / 0.12);
}

.auth-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  animation: auth-float-drift 8s ease-in-out infinite alternate;
  border: 1px solid rgb(255 255 255 / 0.65);
  backdrop-filter: blur(8px);
}

.auth-float-card-1 {
  top: 12%;
  right: 8%;
  animation-delay: 0s;
  background: linear-gradient(135deg, rgb(239 246 255 / 0.95), rgb(219 234 254 / 0.9));
  color: #1d4ed8;
  box-shadow: 0 8px 24px rgb(37 99 235 / 0.15);
}

.auth-float-card-2 {
  top: 38%;
  left: 6%;
  animation-delay: -2.5s;
  background: linear-gradient(135deg, rgb(255 247 237 / 0.95), rgb(254 215 170 / 0.85));
  color: #c2410c;
  box-shadow: 0 8px 24px rgb(234 88 12 / 0.12);
}

.auth-float-card-3 {
  bottom: 14%;
  right: 12%;
  animation-delay: -5s;
  background: linear-gradient(135deg, rgb(240 253 244 / 0.95), rgb(187 247 208 / 0.85));
  color: #15803d;
  box-shadow: 0 8px 24px rgb(22 163 74 / 0.12);
}

.auth-float-card-1 .auth-float-icon-img { filter: hue-rotate(-10deg); }

.auth-float-icon-img {
  flex-shrink: 0;
  display: block;
}

.auth-float-icon-odia {
  font-family: var(--auth-odia-font);
  font-weight: 800;
  font-size: 0.8rem;
}

.auth-float-card-2 .auth-float-icon-odia { color: #ea580c; }
.auth-float-card-3 .auth-float-icon-odia { color: #16a34a; }

@media (max-width: 959px) {
  .auth-float-card { display: none; }
}

@media (min-width: 768px) {
  .auth-float-card { display: flex; }
}

@keyframes auth-float-drift {
  from { transform: translateY(0) rotate(-1deg); opacity: 0.85; }
  to { transform: translateY(-10px) rotate(1deg); opacity: 1; }
}

.auth-form-top {
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  right: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  z-index: 3;
  width: auto;
  max-width: 36rem;
}

@media (min-width: 960px) {
  .auth-form-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 42rem;
    margin-bottom: 0.5rem;
    align-self: center;
  }
}

.auth-help-link {
  font-size: 0.8125rem;
  color: var(--auth-muted);
  text-decoration: none;
  min-width: 0;
  text-align: right;
}

.auth-help-full { display: none; }
.auth-help-full strong { color: var(--auth-link); font-weight: 600; }

@media (min-width: 640px) {
  .auth-help-short { display: none; }
  .auth-help-full { display: inline; }
}

.auth-form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  min-width: 0;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgb(226 232 240 / 0.95);
  border-radius: 1.25rem;
  padding: 1.35rem 1.65rem 1.65rem;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.9) inset,
    0 20px 50px rgb(15 23 42 / 0.1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .auth-form-wrap {
    max-width: 40rem;
  }
}

@media (min-width: 960px) {
  .auth-form-wrap {
    max-width: 42rem;
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.95) inset,
      0 24px 60px rgb(15 23 42 / 0.12);
  }
}

.auth-form-wrap:has(.auth-form-header) {
  padding: 0 0 1.65rem;
}

.auth-form-wrap::before {
  content: "";
  display: block;
  height: 4px;
  margin: -1.35rem -1.65rem 1.15rem;
  width: calc(100% + 3.3rem);
  background: linear-gradient(90deg, #dc2626, #ea580c, #a855f7, #2563eb, #0d9488);
}

.auth-form-wrap:has(.auth-form-header)::before {
  margin: 0 0 0;
  width: 100%;
}

.auth-form-accent {
  display: none;
}

.auth-form-header {
  padding: 1.35rem 1.65rem 0;
}

.auth-form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-trust-pill--secure {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.auth-trust-pill--live {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-trust-pill--gov {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.auth-form-body {
  padding: 0 1.65rem;
}

@media (min-width: 960px) {
  .auth-form-header {
    padding-top: 1.5rem;
  }
}

.auth-form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(234 88 12 / 0.95);
  margin-bottom: 0.45rem;
}

.auth-form-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-navy);
  margin: 0 0 0.45rem;
  line-height: 1.15;
}

.auth-form-sub {
  font-size: 0.875rem;
  color: var(--auth-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.auth-form-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.auth-stats-footnote {
  margin: 0 0 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
}

.auth-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  min-width: 0;
}

.auth-highlight-icon {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  font-size: 0.85rem;
  line-height: 1;
}

.auth-highlight-body {
  min-width: 0;
  width: 100%;
}

.auth-highlight-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-highlight-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
  margin-top: 0.15rem;
}

@media (max-width: 479px) {
  .auth-form-highlights {
    grid-template-columns: 1fr;
  }

  .auth-highlight {
    flex-direction: row;
    text-align: left;
    padding: 0.55rem 0.7rem;
    gap: 0.65rem;
  }

  .auth-stats-footnote {
    text-align: left;
  }
}

.auth-highlight--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #bfdbfe;
}

.auth-highlight--blue .auth-highlight-icon {
  background: rgb(37 99 235 / 0.12);
}

.auth-highlight--blue .auth-highlight-val {
  color: #1d4ed8;
}

.auth-highlight--amber {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border-color: #fed7aa;
}

.auth-highlight--amber .auth-highlight-icon {
  background: rgb(234 88 12 / 0.12);
}

.auth-highlight--amber .auth-highlight-val {
  color: #c2410c;
}

.auth-highlight--green {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}

.auth-highlight--green .auth-highlight-icon {
  background: rgb(22 163 74 / 0.12);
  color: #15803d;
  font-weight: 800;
  font-size: 0.85rem;
}

.auth-highlight--green .auth-highlight-val {
  color: #15803d;
}

.auth-field { margin-bottom: 1rem; min-width: 0; }

.auth-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.auth-field-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
}

.auth-field-link {
  font-size: 0.8125rem;
  color: var(--auth-link);
  text-decoration: none;
  font-weight: 500;
}

.auth-field-link:hover { text-decoration: underline; }

.auth-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-wrap:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.12);
}

.auth-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: none;
  border-radius: 0;
  font-size: 0.9375rem;
  color: #0f172a;
  background: transparent;
  transition: none;
}

.auth-input:focus {
  outline: none;
  box-shadow: none;
  animation: none;
}

.auth-input-inset {
  padding-right: 0.5rem;
}

.auth-textarea {
  display: block;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.55rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}

.auth-textarea:focus {
  outline: none;
  border-color: var(--auth-link);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.auth-toggle-pw {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: 1px solid var(--auth-border);
  background: #f8fafc;
  color: var(--auth-link);
  cursor: pointer;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, color 0.15s;
}

.auth-toggle-pw:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-toggle-pw .auth-eye {
  display: block;
}

.auth-toggle-pw .auth-eye-hide[hidden] {
  display: none;
}

.auth-toggle-pw.is-visible .auth-eye-show {
  display: none;
}

.auth-toggle-pw.is-visible .auth-eye-hide {
  display: block;
}

.auth-toggle-pw.is-visible .auth-eye-hide[hidden] {
  display: block;
}

/* Standalone inputs (email) keep bordered box */
.auth-field > .auth-input {
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field > .auth-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.12);
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #475569;
}

.auth-checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-orange);
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #f97316 0%, var(--auth-orange) 100%);
  color: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 4px 16px rgb(234 88 12 / 0.32);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, var(--auth-orange) 0%, var(--auth-orange-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(234 88 12 / 0.38);
}

.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-primary.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.auth-btn-text { display: inline-block; }

.auth-btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: auth-spin 0.7s linear infinite;
}

.auth-btn-primary.is-loading .auth-btn-spinner { display: inline-block; }
.auth-btn-primary.is-loading .auth-btn-text { opacity: 0.85; }

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-btn-sso {
  background: #fff;
  color: var(--auth-navy);
  border: 1px solid var(--auth-border);
  font-weight: 600;
  gap: 0.5rem;
  border-radius: 0.65rem;
}

.auth-btn-sso:hover {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-color: #bfdbfe;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-notice {
  background: #f8fafc;
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.auth-alert {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-form-footer {
  margin-top: 1rem;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--auth-muted);
  line-height: 1.45;
}

.auth-form-footer a {
  color: var(--auth-link);
  font-weight: 600;
  text-decoration: none;
}

.auth-form-footer a:hover { text-decoration: underline; }

.auth-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-back-link a {
  color: var(--auth-link);
  font-weight: 700;
  text-decoration: none;
}

.auth-back-link a:hover { text-decoration: underline; }

.sso-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
}

/* ── Animations ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .auth-anim, .auth-anim-right { opacity: 1; transform: none; }
}

.auth-anim {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-anim-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-anim.is-visible,
.auth-anim-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.auth-panel {
  animation: auth-panel-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-panel-in {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-form-side {
  animation: auth-form-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes auth-form-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-shake {
  animation: auth-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.auth-pop-in {
  animation: auth-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-input:focus {
  animation: auth-input-glow 0.3s ease forwards;
}

.auth-field > .auth-input:focus {
  animation: auth-input-glow 0.3s ease forwards;
}

@keyframes auth-input-glow {
  from { box-shadow: 0 0 0 0 rgb(59 130 246 / 0); }
  to { box-shadow: 0 0 0 3px rgb(59 130 246 / 0.12); }
}

.auth-btn-sso {
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.auth-btn-sso:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.auth-no-motion .auth-panel-glow,
.auth-no-motion .auth-status-dot,
.auth-no-motion .auth-orb,
.auth-no-motion .auth-scene-img,
.auth-no-motion .auth-float-card,
.auth-no-motion .auth-konark-watermark,
.auth-no-motion .auth-ticker-track { animation: none; }

.auth-no-motion .auth-panel,
.auth-no-motion .auth-form-side { animation: none; }

.auth-email-chip {
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  font-size: 0.875rem;
  font-weight: 600;
  word-break: break-all;
}

.auth-password-rules {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--auth-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

.auth-field-hint-error {
  color: #b91c1c;
}

.auth-btn-inline {
  display: inline-flex;
  width: auto;
  text-decoration: none;
  justify-content: center;
}
