.dental-auth {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.3fr);
  width: min(100%, 1020px);
  margin: 36px auto 48px;
  border: 1px solid #b6d6ec;
  border-radius: 24px;
  overflow: hidden;
  background: #f8faff;
  box-shadow: 0 22px 70px #0a1a2f14;
}
.dental-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 30px 90px;
  isolation: isolate;
  background: radial-gradient(ellipse at 60% 60%, #084876 0, #032340 45%, #04172c 100%);
  color: #fff;
  text-align: center;
}
.dental-auth-brand .real-logo {
  width: 100%;
  max-width: 290px;
  height: auto;
  flex-shrink: 0;
}
.dental-auth-message {
  position: relative;
  z-index: 1;
  margin-top: 36px;
}
.dental-auth-message h1 {
  color: white;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 0;
}
.dental-auth-message p {
  color: #e5effa;
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 0;
}
.auth-illustration {
  width: min(100%, 310px);
  margin: 20px auto 0;
  flex: 1;
  min-height: 180px;
  position: relative;
  z-index: 1;
}
.auth-waves {
  position: absolute;
  width: 100%;
  height: 110px;
  bottom: 0;
  left: 0;
  z-index: -1;
}
.dental-auth-content {
  padding: clamp(28px, 4vw, 58px);
  align-self: center;
  min-width: 0;
  width: 100%;
}
.dental-auth-content h2 {
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 12px;
  color: #081b37;
}
.dental-auth-content > p,
.dental-auth-content #clerk-auth > p {
  color: #344761;
  font-size: 14px;
  line-height: 1.6;
}
.dental-auth-content .form-grid {
  margin-top: 26px;
  gap: 16px;
  grid-template-columns: 1fr;
}
.dental-auth-content label {
  font-size: 12px;
  font-weight: 500;
  gap: 7px;
  min-width: 0;
}
.dental-auth-content input,
.dental-auth-content textarea {
  background: #ffffffb3;
  border: 1px solid #bacde5;
  border-radius: 11px;
  min-height: 48px;
  font-size: 14px;
  width: 100%;
}
.dental-auth-content input:focus-visible,
.dental-auth-content textarea:focus-visible {
  outline: 3px solid #147bff30;
  border-color: #147bff;
}
.dental-auth-content .button.primary {
  background: linear-gradient(110deg, #005ce7, #00b8d2);
  border: 0;
  border-radius: 11px;
  min-height: 48px;
  width: 100%;
  justify-content: center;
  box-shadow: inset 0 1px 0 #64e7ff;
  font-weight: 650;
}
.dental-auth-content .form-actions {
  margin-top: 22px;
}
.dental-auth-content #personal-signup > button {
  margin-top: 16px;
}
.dental-auth-content a:not(.button) {
  color: #0064e8;
  font-weight: 600;
}
.dental-auth-content .muted {
  text-align: center;
  font-size: 11px !important;
  color: #718197 !important;
  margin-top: 24px;
}
.auth-input-shell {
  display: block;
  position: relative;
  width: 100%;
}
.auth-input-shell > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #0064d8;
  stroke-width: 1.6;
  pointer-events: none;
}
.auth-input-shell input {
  padding-left: 46px;
  padding-right: 45px;
}
.auth-password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #456587;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.auth-password-toggle:focus-visible {
  outline: 2px solid #147bff;
}
.auth-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #8fbfff;
  color: #0064e8;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 26px;
}
.auth-portal-badge svg,
.auth-review-note svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.auth-review-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: #e5f2ff;
  border-radius: 10px;
  margin-top: 20px;
  color: #1f496d;
  font-size: 12px;
  line-height: 1.6;
}
.auth-bottom-link {
  text-align: center;
  margin-top: 26px;
}
.dental-auth-practice .dental-auth-message {
  text-align: left;
}
.dental-auth-practice .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dental-auth-practice #clerk-auth .form-grid {
  grid-template-columns: 1fr;
}
.dental-auth-practice textarea {
  min-height: 80px;
  resize: vertical;
}
.dental-auth-practice label:has(textarea) {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .dental-auth {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    border-radius: 18px;
    margin-top: 24px;
  }
  .dental-auth-brand {
    padding: 40px 22px 70px;
  }
  .dental-auth-content {
    padding: 30px 24px;
  }
  .dental-auth-message h1 {
    font-size: 24px;
  }
  .dental-auth-practice .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .dental-auth {
    grid-template-columns: 1fr;
    margin: 18px auto 26px;
  }
  .dental-auth-brand {
    padding: 25px 24px 38px;
    align-items: flex-start;
    text-align: left;
  }
  .dental-auth-brand .real-logo {
    width: 210px;
    max-width: 70%;
  }
  .dental-auth-message {
    margin-top: 20px;
    max-width: 72%;
  }
  .dental-auth-message h1 {
    font-size: 22px;
  }
  .dental-auth-message p {
    font-size: 12px;
    margin-top: 10px;
  }
  .auth-illustration {
    position: absolute;
    width: 115px;
    min-height: 0;
    height: 120px;
    right: 6px;
    bottom: 15px;
    margin: 0;
    opacity: 0.85;
  }
  .auth-waves {
    height: 45px;
  }
  .dental-auth-content {
    padding: 28px 22px;
  }
  .dental-auth-content h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dental-auth * {
    scroll-behavior: auto;
  }
}
.auth-consent {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.auth-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
}
.auth-social {
  margin: 1.25rem 0;
}
.auth-social > p:first-child {
  margin: 0 0 0.75rem;
  color: #526479;
  font-size: 0.875rem;
}
.auth-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.auth-social-actions .button {
  flex: 1 1 9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.auth-social-actions svg {
  flex: none;
}
.dental-auth-content .auth-consent input[type='checkbox'],
.auth-consent input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #147bff;
}
.activation-summary {
  padding: 15px 18px;
  margin: 0 0 22px;
  border-radius: 12px;
  background: #e7f2ff;
  border: 1px solid #c5ddfb;
  overflow-wrap: anywhere;
}
.activation-summary strong,
.activation-summary span {
  display: block;
}
.activation-summary span {
  font-size: 12px;
  margin-top: 6px;
  color: #415c7d;
}
.legal-page {
  max-width: 880px;
  margin: 30px auto;
  padding: clamp(24px, 5vw, 54px);
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 22px;
}
.legal-page-heading h1 {
  font-size: clamp(27px, 4vw, 40px);
  color: #0a1a2f;
  margin: 0 0 12px;
}
.legal-page-heading nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}
.legal-page a {
  color: #0064e8;
  text-underline-offset: 3px;
}
.legal-page nav [aria-current='page'] {
  font-weight: 700;
}
.legal-draft-note {
  background: #eef5ff;
  border-left: 3px solid #147bff;
  padding: 16px 20px;
  line-height: 1.7;
  color: #34516e;
  font-size: 13px;
  margin-bottom: 30px;
}
.legal-page section {
  margin-top: 28px;
}
.legal-page section h2 {
  font-size: 19px;
}
.legal-page section p {
  font-size: 14px;
  line-height: 1.9;
  color: #40516a;
}
.legal-version {
  margin-top: 32px;
  font-size: 12px;
  color: #718197;
}
.saved-accounts {
  margin-block: 24px 20px;
}
.saved-accounts h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0a1a2f;
}
.dental-auth-content .saved-accounts > p {
  margin: 0 0 16px;
  color: #64758a;
  font-size: 12px;
  line-height: 1.6;
}
.saved-account-list {
  display: grid;
  gap: 12px;
}
.saved-account-card {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d6e3f2;
  border-radius: 15px;
  background: #ffffffd9;
  box-shadow: 0 3px 12px #0a1a2f04;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.saved-account-card:focus-within,
.saved-account-card:hover {
  border-color: #82b7f9;
  box-shadow: 0 4px 16px #147bff0c;
}
.saved-account-open {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0a1a2f;
  font: inherit;
  cursor: pointer;
  text-align: start;
}
.saved-account-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(140deg, #e5f0ff, #dcf8f5);
  color: #1469bc;
  font-size: 14px;
  font-weight: 700;
}
.saved-account-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.saved-account-copy strong {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.saved-account-copy > span {
  color: #64758a;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.saved-account-status {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 6px;
  color: #2668b4;
  background: #edf4ff;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.saved-account-status.is-active {
  color: #107458;
  background: #e4f6ef;
}
.saved-account-arrow svg,
.saved-account-remove svg {
  display: block;
  width: 18px;
  height: 18px;
}
.saved-account-arrow {
  color: #7a93ae;
}
.saved-account-remove {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #718197;
  cursor: pointer;
}
.saved-account-remove:hover {
  color: #a52b3b;
  background: #fff0f2;
}
.saved-account-open:focus-visible,
.saved-account-remove:focus-visible {
  outline: 3px solid #00b7cb;
  outline-offset: 2px;
}
.saved-account-open:disabled {
  opacity: 0.6;
  cursor: wait;
}
.saved-accounts-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: #718197;
  font-size: 11px;
}
.saved-accounts-divider::before,
.saved-accounts-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dce6f1;
}
@media (max-width: 480px) {
  .saved-account-open {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 8px;
  }
  .saved-account-copy {
    flex-basis: calc(100% - 58px);
  }
  .saved-account-status {
    margin-inline-start: 54px;
  }
  .saved-account-arrow {
    margin-inline-start: auto;
  }
  .saved-account-remove {
    align-self: flex-start;
    margin-top: 12px;
  }
}
.workspace-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.workspace-choices .panel-body .button {
  width: 100%;
}
.document-practice-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
}
.export-summary {
  padding: 18px;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: #f2f8fd;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.document-status-banner {
  padding: 16px;
  border: 2px solid #a52b3b;
  color: #8b2030;
  margin: 20px 0;
}

.legal-page {
  width: min(960px, calc(100% - 32px));
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.legal-page-heading > p {
  color: #40516a;
  line-height: 1.75;
}
.legal-page-heading .auth-portal-badge {
  margin-bottom: 18px;
}
.legal-page-heading nav {
  gap: 10px;
}
.legal-page-heading nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 13px;
}
.legal-page-heading nav a[aria-current='page'] {
  background: #eaf3ff;
  border-color: #147bff;
}
.legal-contents {
  padding: 18px 22px;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
}
.legal-contents summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 24px;
}
.legal-contents li {
  padding: 6px 0;
  line-height: 1.6;
  color: #40516a;
}
.legal-page section {
  padding-top: 22px;
  border-top: 1px solid #e5ecf4;
}
.legal-page a:focus-visible,
.legal-contents summary:focus-visible {
  outline: 3px solid #147bff;
  outline-offset: 4px;
}
footer nav[aria-label='Legal information'] {
  line-height: 2;
}
footer nav[aria-label='Legal information'] a {
  display: inline-block;
  padding: 4px 6px;
}
@media (max-width: 540px) {
  .legal-page {
    margin: 16px auto;
    padding: 24px 18px;
    border-radius: 16px;
  }
  .legal-page-heading nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .legal-page-heading nav a {
    font-size: 12px;
    padding: 10px;
  }
  .legal-page section h2 {
    font-size: 18px;
    line-height: 1.5;
  }
}

.registration-data-notice {
  margin-block: 22px;
  padding: 18px 20px;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  background: #f3f8ff;
  color: #34516e;
}
.registration-data-notice strong {
  color: #0a1a2f;
  font-size: 14px;
}
.registration-data-notice p {
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0 0;
}
.registration-data-notice a {
  color: #0064e8;
  text-underline-offset: 3px;
}
