.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: url("/img/adcraft/assests/BG (2).png") center / cover no-repeat;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 70%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(120,150,255,.35), transparent 65%);
  filter: blur(10px);
}
.auth-brand-inner { 
  font-weight: 400;
  font-size: 50px;
  line-height: 59px;
  letter-spacing: 0px;
 }

.auth-brand .logo { margin-bottom: 40px; }

.auth-brand h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.auth-brand p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 3. Form panel shell ---------- */
.auth-form-wrap { width: 100%; max-width: 380px; }

.auth-head { margin-bottom: 28px; }
.auth-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 45px;
  letter-spacing: -.02em;
  font-weight: 400;
  font-style: Regular;
  /* font-size: 48px; */
  line-height: 62px;
  letter-spacing: -2px;

}
.auth-head p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;

}

/* stack of form controls */
.auth-form { display: grid; gap: 18px; }

/* ---------- 4. Role toggle ---------- */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.role-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.role-opt:hover { border-color: #C7C7DA; }
.role-opt input { accent-color: var(--blue); }
.role-opt:has(input:checked) {
  border-color: var(--blue);
  background: var(--surface-blue);
  color: var(--blue);
}

/* ---------- 5. Fields ---------- */
.auth-field { display: grid; gap: 7px; }
.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35,35,240,.12);
}

/* input with a trailing control (password eye) */
.input-affix { position: relative; }
.input-affix input { padding-right: 42px; }
.input-affix button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.input-affix button:hover { color: var(--ink); }

/* ---------- 6. Login extras ---------- */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  cursor: pointer;
}
.remember input { accent-color: var(--blue); }
.login-row a { color: var(--blue); font-weight: 500; }
.login-row a:hover { color: var(--blue-dark); }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.social-btn:hover { border-color: #C7C7DA; background: var(--surface-alt); }
.social-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }

.auth-foot {
  margin-top: 4px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-foot a { color: var(--blue); font-weight: 600; }
.auth-foot a:hover { color: var(--blue-dark); }

/* ---------- 7. Phone screen ---------- */
.legal-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.legal-note a { color: var(--blue); }

/* ---------- 8. OTP screen ---------- */
.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.otp-inputs input {
  width: 56px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.otp-inputs input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35,35,240,.12);
}
.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.otp-resend button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

/* ---------- 9. Verified screen ---------- */
.verified-box { text-align: center; }
.verified-icon {
  display: grid;
  place-items: center;
  width: 205px;
  height: 205px;
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  color: #22C55E;
}
.verified-box h2 { font-size: 26px; letter-spacing: -.02em; }
.verified-box p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.verified-box .btn { margin-top: 28px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  /* brand column becomes a compact header strip */
  .auth-brand {
    min-height: auto;
    padding-block: 40px;
  }
  .auth-brand h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .social-row { grid-template-columns: 1fr; }
  .otp-inputs input { width: 46px; height: 52px; font-size: 19px; }
}
