:root {
  --navy: #050d1f;
  --indigo: #3b5bdb;
  --indigo-light: #4c6ef5;
  --blue: #228be6;
  --cyan: #15aabf;
  --emerald: #12b886;
  --white: #ffffff;
  --panel-bg: linear-gradient(140deg, #dde8ff 0%, #edf2ff 35%, #f3f7ff 65%, #f8fbff 100%);
  --text-dark: #0d1e3c;
  --text-mid-dk: rgba(13, 30, 60, 0.62);
  --text-dim-dk: rgba(13, 30, 60, 0.42);
  --border-light: rgba(59, 91, 219, 0.13);
  --card-light: rgba(255, 255, 255, 0.72);

  /* Typography */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  background: #f0f4ff;
  color: var(--text-dark);
  height: 100vh;       /* exact viewport height — no min-height overflow */
  display: flex;
  overflow: hidden;    /* eliminates outer scrollbar at all times */
}

/* ── LAYOUT ── */
.page-wrap {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ─────────────── LEFT PANEL ─────────────── */
.left-panel {
  width: 58%;
  height: 100%;
  background: var(--panel-bg);
  border-right: 1px solid rgba(99, 115, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

/* India map */
.india-map-wrap {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-48%);
  width: 520px;
  z-index: 0;
  pointer-events: none;
}

.india-map-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.88;
  animation: mapFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(6, 182, 212, 0.30));
}

@keyframes mapFloat {
  0%,  100% { transform: translateY(0px);   }
  50%        { transform: translateY(-10px); }
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both;
}

.brand-logo {
  width: 52px;
  height: 52px;
  /* background: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%); */
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  /* box-shadow: 0 4px 18px rgba(59, 91, 219, 0.32); */
}

.brand-logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--indigo);
}

/* Hero */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 91, 219, 0.07);
  border: 1px solid rgba(59, 91, 219, 0.24);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--indigo);
  width: fit-content;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  animation: blink 1.6s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.25
  }
}

.hero-headline {
  /* font-family: popine; */
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-dark);
  margin-bottom: 10px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-headline .grad {
  background: linear-gradient(90deg, var(--indigo-light) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-bar {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo) 0%, var(--cyan) 100%);
  border-radius: 4px;
  margin-bottom: 22px;
  animation: fadeUp 0.6s 0.25s ease both;
}

.hero-desc {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-mid-dk);
  line-height: 1.80;
  max-width: 400px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* Stats */
.stat-row {
  display: flex;
  gap: 0;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-right: none;
  background: var(--card-light);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.stat-item:first-child {
  border-radius: 14px 0 0 14px;
}

.stat-item:last-child {
  border-radius: 0 14px 14px 0;
  border-right: 1px solid var(--border-light);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.92);
}

.stat-icon {
  font-size: 21px;
  color: var(--indigo);
  margin-bottom: 6px;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-dark);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim-dk);
}

/* Left footer */
.left-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim-dk);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.5s ease both;
}

.left-footer a {
  color: var(--indigo);
  text-decoration: none;
}

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

.sep {
  opacity: 0.35;
}

/* ─────────────── RIGHT PANEL ─────────────── */
.right-panel {
  width: 42%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: #ffffff;
  overflow-y: auto;
  box-sizing: border-box;
}

.form-container {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.7s 0.15s ease both;
}

/* Form header */
.form-header {
  margin-bottom: 28px;
  text-align: center;
}

.context-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.tag-dist {
  background: rgba(59, 91, 219, 0.10);
  color: #3b5bdb;
  border: 1px solid rgba(59, 91, 219, 0.28);
}

.tag-ret {
  background: rgba(18, 184, 134, 0.10);
  color: #0ca678;
  border: 1px solid rgba(18, 184, 134, 0.28);
}

.tag-hosp {
  background: rgba(21, 170, 191, 0.10);
  color: #1098ad;
  border: 1px solid rgba(21, 170, 191, 0.28);
}

.tag-mfr {
  background: rgba(245, 159, 0, 0.10);
  color: #e67700;
  border: 1px solid rgba(245, 159, 0, 0.28);
}

.form-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  color: #0d1e3c;
}

.form-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.65;
}

/* Role selector */
.role-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  padding: 5px;
}

.role-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 13px 6px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

.role-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 50%, #06b6d4 100%);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: inherit;
}

.role-btn.active {
  color: #fff;
  border-color: rgba(76, 110, 245, 0.40);
}

.role-btn.active::before {
  opacity: 1;
}

.role-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.70);
}

.role-icon {
  font-size: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-btn.active .role-icon {
  transform: scale(1.18);
}

.role-btn-label {
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.3;
}

.role-btn-sub {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.72;
  position: relative;
  z-index: 1;
}

/* Fields */
.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.60);
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  background: #f6f8fa;
  border: 1.5px solid rgba(0, 0, 0, 0.11);
  border-radius: 12px;
  padding: 13px 14px 13px 44px;
  color: #0d1e3c;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: all 0.22s;
}

/* Auth status message */
.auth-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.auth-msg--error {
  background: rgba(250, 82, 82, 0.10);
  border: 1px solid rgba(250, 82, 82, 0.30);
  color: #c92a2a;
}

.auth-msg--success {
  background: rgba(18, 184, 134, 0.10);
  border: 1px solid rgba(18, 184, 134, 0.30);
  color: #087f5b;
}

input::placeholder {
  color: rgba(0, 0, 0, 0.26);
}

input:focus {
  border-color: var(--indigo-light);
  background: rgba(59, 91, 219, 0.04);
  box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.09);
}

.pw-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.pw-toggle:hover {
  color: #000;
}

.row-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.remember input {
  accent-color: var(--indigo-light);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot:hover {
  color: var(--cyan);
}

/* CTA */
.btn-signin {
  width: 100%;
  padding: 14.5px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 55%, #06b6d4 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(59, 91, 219, 0.38);
}

.btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 91, 219, 0.52);
  background-position: right center;
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.38);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.10);
}

/* OTP btn */
.btn-otp {
  width: 100%;
  padding: 12.5px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  color: rgba(0, 0, 0, 0.58);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn-otp:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.22);
  color: #000;
}

/* Register */
.register-row {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.50);
}

.register-row a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.register-row a:hover {
  opacity: 0.72;
}

/* Trust */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.42);
}

/* Floating toast — centered in the left panel (58% wide → mid-point = 29%) */
.floaty {
  position: fixed;
  bottom: 32px;
  left: 60%;
  transform: translateX(-50%);
  background: rgba(8, 18, 38, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 50px;
  padding: 10px 20px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -50px;
  backdrop-filter: blur(24px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(6,182,212,0.10);
  animation: floatUp 0.6s 1.2s ease both;
  z-index: 100;
  white-space: nowrap;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.floaty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: blink 1.6s ease infinite;
}

.floaty-text {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.floaty-text strong {
  color: #fff;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────── RESPONSIVE ─────────────── */

/* ── 13-inch laptop (1366×768) ── */
@media (max-width: 1366px) {

  /* Left panel: tighten vertical breathing room */
  .left-panel {
    padding: 32px 40px;
  }

  .hero-content {
    padding: 18px 0;
  }

  .hero-badge {
    margin-bottom: 14px;
    font-size: 10px;
    padding: 5px 13px;
  }

  .hero-headline {
    font-size: 38px;
    margin-bottom: 8px;
  }

  .headline-bar {
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.70;
    margin-bottom: 22px;
  }

  .stat-item {
    padding: 10px 12px;
  }

  .stat-val {
    font-size: 17px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .india-map-wrap {
    width: 400px;
    right: -40px;
  }

  /* Right panel: base reduction for 1366px-wide screens */
  .right-panel {
    padding: 28px 36px;
  }

  .form-header {
    margin-bottom: 16px;
  }

  .context-tag {
    margin-bottom: 10px;
    font-size: 10px;
    padding: 5px 13px;
  }

  .form-title {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .form-subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .role-selector {
    margin-bottom: 16px;
    padding: 4px;
    gap: 4px;
  }

  .role-btn {
    padding: 9px 5px;
  }

  .role-icon {
    font-size: 17px;
  }

  .role-btn-label {
    font-size: 10px;
  }

  .field-group {
    margin-bottom: 10px;
  }

  .field-label {
    margin-bottom: 5px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"] {
    padding: 10px 14px 10px 40px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  .row-2 {
    margin-bottom: 14px;
  }

  .btn-signin {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .divider {
    margin: 13px 0;
    font-size: 11.5px;
  }

  .btn-otp {
    padding: 10.5px;
    font-size: 13.5px;
    border-radius: 12px;
  }

  .register-row {
    margin-top: 13px;
    font-size: 13px;
  }

  .trust-row {
    margin-top: 13px;
    padding-top: 12px;
    gap: 14px;
  }

  .trust-item {
    font-size: 10.5px;
  }

  .floaty {
    bottom: 18px;
    font-size: 12px;
  }
}

/* Height-based safety net: covers 768px screens where browser chrome
   consumes ~80-100px, leaving only ~670-690px usable height */
@media (max-height: 830px) {
  .right-panel {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .form-header {
    margin-bottom: 10px;
  }

  .context-tag {
    margin-bottom: 8px;
    font-size: 10px;
    padding: 5px 12px;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .form-subtitle {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .role-selector {
    margin-bottom: 10px;
    padding: 4px;
  }

  .role-btn {
    padding: 8px 5px;
  }

  .role-icon {
    font-size: 16px;
  }

  .field-group {
    margin-bottom: 8px;
  }

  .field-label {
    margin-bottom: 4px;
  }

  .row-2 {
    margin-bottom: 10px;
  }

  .divider {
    margin: 9px 0;
  }

  .register-row {
    margin-top: 9px;
  }

  .trust-row {
    margin-top: 9px;
    padding-top: 9px;
    gap: 14px;
  }
}

/* ── 13-inch laptop precision (1366×768) ──
   Fires only when both width ≤ 1366 AND height ≤ 830,
   i.e. the exact target device with browser chrome factored in */
@media (max-width: 1366px) and (max-height: 830px) {
  .right-panel {
    padding: 16px 28px;
  }

  .form-container {
    max-width: 400px;
  }

  .form-header {
    margin-bottom: 10px;
  }

  .form-title {
    font-size: 22px;
    letter-spacing: -0.6px;
  }

  .role-selector {
    margin-bottom: 10px;
    border-radius: 13px;
  }

  .role-btn {
    padding: 8px 4px;
  }

  .field-group {
    margin-bottom: 8px;
  }

  .field-label {
    margin-bottom: 4px;
    font-size: 10.5px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"] {
    padding: 9px 14px 9px 40px;
    font-size: 13px;
    border-radius: 10px;
  }

  .row-2 {
    margin-bottom: 10px;
  }

  .btn-signin {
    padding: 11px;
    font-size: 13.5px;
    border-radius: 11px;
  }

  .divider {
    margin: 9px 0;
    font-size: 11px;
  }

  .btn-otp {
    padding: 9.5px;
    font-size: 13px;
    border-radius: 11px;
  }

  .register-row {
    margin-top: 9px;
    font-size: 12.5px;
  }

  .trust-row {
    margin-top: 9px;
    padding-top: 9px;
    gap: 12px;
  }

  .trust-item {
    font-size: 10px;
  }

  .floaty {
    bottom: 14px;
    padding: 8px 16px 8px 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 1100px) {
  .left-panel {
    width: 55%;
    padding: 40px 40px;
  }

  .right-panel {
    width: 45%;
    padding: 40px 36px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .india-map-wrap {
    width: 420px;
    right: -30px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    padding: 48px 40px;
    min-height: 100vh;
  }

  .floaty {
    left: 50%;
  }
}

@media (max-width: 600px) {
  .right-panel {
    padding: 36px 24px;
  }

  .form-container {
    max-width: 100%;
  }

  .form-title {
    font-size: 26px;
  }

  .role-selector {
    gap: 4px;
    padding: 4px;
  }

  .role-btn {
    padding: 10px 4px;
  }

  .role-btn-label {
    font-size: 10px;
  }

  .role-btn-sub {
    display: none;
  }

  .trust-row {
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .right-panel {
    padding: 28px 16px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-subtitle {
    font-size: 13px;
  }

  .role-icon {
    font-size: 17px;
  }

  .row-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .floaty {
    width: 90%;
    white-space: normal;
    text-align: center;
  }

  .trust-row {
    flex-direction: column;
    gap: 8px;
  }
}