/* V68 Patch B — patient authentication aligned with the public clinic shell. */
.drt-auth-section {
  padding: 34px 0 64px;
}

.drt-auth-container {
  display: grid;
  gap: 22px;
}

.drt-auth-messages {
  display: grid;
  gap: 8px;
}

.drt-auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid var(--drt-line);
  border-radius: var(--drt-radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(220, 239, 238, .7), transparent 24rem),
    rgba(255, 255, 255, .9);
  box-shadow: var(--drt-shadow-soft);
}

.drt-auth-hero-copy h1 {
  margin: 10px 0 8px;
  color: var(--drt-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.45;
  font-weight: 950;
}

.drt-auth-hero-copy p,
.drt-auth-card-description,
.drt-auth-register p {
  margin: 0;
  color: var(--drt-muted);
  line-height: 1.95;
}

.drt-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--drt-primary);
  font-size: 12px;
  font-weight: 900;
}

.drt-auth-identity-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--drt-line-strong);
  border-radius: var(--drt-radius-md);
  background: rgba(238, 247, 246, .78);
  color: var(--drt-primary);
}

.drt-auth-identity-hint div { display: grid; gap: 5px; }
.drt-auth-identity-hint strong { color: var(--drt-ink); font-size: 14px; }
.drt-auth-identity-hint span { color: #587276; font-size: 12px; line-height: 1.85; }

.drt-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.drt-auth-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--drt-line);
  border-radius: var(--drt-radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(9, 62, 69, .055);
}

.drt-auth-card.is-otp { border-top: 3px solid var(--drt-primary-2); }
.drt-auth-card.is-password { border-top: 3px solid var(--drt-gold); }

.drt-auth-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.drt-auth-card-head > div { display: grid; gap: 2px; }
.drt-auth-card-head > div > span { color: var(--drt-muted); font-size: 11px; font-weight: 800; }
.drt-auth-card-head h1,
.drt-auth-card-head h2 {
  margin: 0;
  color: var(--drt-ink);
  font-size: 19px;
  font-weight: 950;
}

.drt-auth-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--drt-mint-2);
  color: var(--drt-primary);
}

.drt-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.drt-auth-form .input { width: 100%; margin-top: 7px; }
.drt-auth-submit { width: 100%; border: 0; cursor: pointer; }

.drt-auth-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--drt-line);
  color: #6a7f82;
  font-size: 12px;
  line-height: 1.8;
}

.drt-auth-register {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--drt-line);
}

.drt-auth-register .drt-public-btn { width: 100%; }

.drt-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #60787b;
  font-size: 12px;
  font-weight: 800;
}

.drt-auth-trust span { display: inline-flex; align-items: center; gap: 7px; }

.drt-auth-verify {
  display: grid;
  place-items: center;
  padding: 8px 0 24px;
}

.drt-auth-card.is-verify {
  width: min(100%, 560px);
  border-top: 3px solid var(--drt-primary-2);
}

.drt-auth-verify-identifier {
  margin: 8px 0 0;
  color: #708487;
  font-size: 12px;
}

.drt-auth-code { text-align: center; letter-spacing: .22em; direction: ltr; }

.drt-auth-verify-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .drt-auth-hero { grid-template-columns: 1fr; padding: 24px; }
  .drt-auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .drt-auth-section { padding: 20px 0 42px; }
  .drt-auth-hero,
  .drt-auth-card { padding: 20px; border-radius: 20px; }
  .drt-auth-verify-actions { align-items: stretch; flex-direction: column; }
  .drt-auth-verify-actions form,
  .drt-auth-verify-actions .drt-public-btn,
  .drt-auth-verify-actions .drt-public-text-link { width: 100%; justify-content: center; }
}

/* V68.RC2 — approved split patient-login design. */
.drt-login-v68rc2 {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #d9e7ef;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(21, 70, 101, .10);
}
.drt-login-v68rc2__form-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 4vw, 48px);
  background: #fff;
}
.drt-login-v68rc2__intro h1 {
  margin: 10px 0 8px;
  color: #123d5d;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  font-weight: 950;
}
.drt-login-v68rc2__intro p {
  max-width: 620px;
  margin: 0;
  color: #647b8c;
  line-height: 1.9;
}
.drt-login-v68rc2__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 28px;
  padding: 5px;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: #f4f8fb;
}
.drt-login-v68rc2__tab {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
}
.drt-login-v68rc2__tab.is-active {
  background: #fff;
  color: #0e6fb7;
  box-shadow: 0 5px 18px rgba(33, 103, 151, .10);
}
.drt-login-v68rc2__panel {
  margin-top: 22px;
}
.drt-login-v68rc2__panel[hidden] { display: none !important; }
.drt-login-v68rc2__panel-head { display: grid; gap: 4px; }
.drt-login-v68rc2__panel-head strong { color: #173a52; font-size: 1rem; font-weight: 950; }
.drt-login-v68rc2__panel-head span { color: #748a99; font-size: .78rem; line-height: 1.7; }
.drt-login-v68rc2__input-wrap { position: relative; }
.drt-login-v68rc2__input-wrap > svg {
  position: absolute;
  z-index: 2;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f96a6;
  pointer-events: none;
}
.drt-login-v68rc2__input-wrap .input { margin-top: 7px; padding-inline-start: 40px; }
.drt-login-v68rc2__field-help { display: block; margin-top: 6px; color: #8092a0; font-size: .7rem; line-height: 1.65; }
.drt-login-v68rc2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid #e5edf2;
}
.drt-login-v68rc2__footer > div { display: grid; gap: 3px; }
.drt-login-v68rc2__footer strong { color: #1e4058; font-size: .86rem; font-weight: 900; }
.drt-login-v68rc2__footer span { color: #78909f; font-size: .73rem; line-height: 1.7; }
.drt-login-v68rc2__visual {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 44px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.86), transparent 28%),
    linear-gradient(145deg, #e8f4ff 0%, #f5fbff 46%, #e5f6f6 100%);
}
.drt-login-v68rc2__visual::before,
.drt-login-v68rc2__visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .6;
}
.drt-login-v68rc2__visual::before { width: 260px; height: 260px; inset-inline-end: -90px; top: -70px; background: rgba(81, 165, 223, .17); }
.drt-login-v68rc2__visual::after { width: 220px; height: 220px; inset-inline-start: -70px; bottom: -80px; background: rgba(76, 192, 180, .16); }
.drt-login-v68rc2__visual-copy { position: relative; z-index: 1; width: 100%; text-align: center; }
.drt-login-v68rc2__visual-kicker { color: #0d77ba; font-size: .78rem; font-weight: 950; letter-spacing: .08em; }
.drt-login-v68rc2__visual h2 { margin: 8px 0; color: #133f60; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.5; font-weight: 950; }
.drt-login-v68rc2__visual p { margin: 0 auto; max-width: 430px; color: #567486; line-height: 1.9; }
.drt-login-v68rc2__phone {
  position: relative;
  z-index: 1;
  width: 154px;
  height: 270px;
  padding: 10px;
  border: 6px solid #224e6c;
  border-radius: 30px;
  background: #f9fdff;
  box-shadow: 0 22px 42px rgba(33, 75, 103, .24);
  transform: rotate(-4deg);
}
.drt-login-v68rc2__phone-notch { width: 64px; height: 13px; margin: -3px auto 7px; border-radius: 0 0 12px 12px; background: #224e6c; }
.drt-login-v68rc2__phone-screen { display: grid; height: calc(100% - 20px); place-items: center; align-content: center; gap: 6px; border-radius: 20px; background: linear-gradient(160deg, #f7fbff, #eaf5fb); color: #2f617f; }
.drt-login-v68rc2__phone-screen strong { color: #164a6b; font-size: 1rem; }
.drt-login-v68rc2__phone-screen small { color: #6f8797; }
.drt-login-v68rc2__heart { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #fff; color: #1785d1; font-size: 28px; box-shadow: 0 12px 28px rgba(36, 119, 174, .14); }
.drt-login-v68rc2__benefits {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 430px);
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drt-login-v68rc2__benefits li { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid rgba(174, 209, 230, .72); border-radius: 14px; background: rgba(255,255,255,.72); color: #40647b; font-size: .72rem; font-weight: 800; }
.drt-login-v68rc2__benefits svg { color: #0f83c9; flex: 0 0 auto; }

@media (max-width: 940px) {
  .drt-login-v68rc2 { grid-template-columns: 1fr; }
  .drt-login-v68rc2__visual { min-height: 470px; }
}
@media (max-width: 640px) {
  .drt-login-v68rc2 { border-radius: 22px; }
  .drt-login-v68rc2__form-pane { padding: 22px 18px; }
  .drt-login-v68rc2__tabs { grid-template-columns: 1fr; }
  .drt-login-v68rc2__footer { align-items: stretch; flex-direction: column; }
  .drt-login-v68rc2__footer .drt-public-btn { width: 100%; }
  .drt-login-v68rc2__visual { min-height: 430px; padding: 34px 20px; }
  .drt-login-v68rc2__benefits { grid-template-columns: 1fr; }
}
