/* Access is a quiet part of the Anamnesist portal, not a separate product. */
.auth-experience {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
  background: var(--surface);
  color: var(--text);
}
.auth-world {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px;
  background:
    radial-gradient(ellipse at 20% 15%, #3877ff38, transparent 65%),
    linear-gradient(145deg, #eff4fc, #f5f6fa 65%);
}
.auth-world::after {
  content: '';
  width: 620px;
  height: 620px;
  border: 1px solid #668ed618;
  border-radius: 50%;
  position: absolute;
  top: 18%;
  left: 5%;
  box-shadow:
    0 0 0 80px #668ed606,
    0 0 0 160px #668ed604;
  pointer-events: none;
}
.auth-world-symbol {
  position: relative;
  z-index: 1;
  width: 100px;
  margin-bottom: 44px;
  filter: drop-shadow(0 16px 25px #075bd42a);
}
.auth-world-symbol img {
  width: 100%;
  display: block;
}
.auth-world-cards {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 24px;
  border: 1px solid #fff;
  border-radius: 32px;
  background: #ffffffae;
  box-shadow:
    0 30px 75px -30px #345c9355,
    inset 0 1px 0 #fff;
  transform: rotate(-5deg);
}
.auth-world-app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 26px;
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 650;
  color: #1c293f;
}
.auth-world-app img {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  box-shadow: 0 8px 20px #095dcd1a;
}
.auth-world-app > svg {
  margin-left: auto;
  color: #4b6fa9;
}
.auth-world-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
  padding: 12px 10px 0;
  border-bottom: 1px solid #bbcbe740;
}
.auth-world-chart i {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#3f97ff, #0861e0);
  height: 40%;
  animation: access-breathe 8s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.auth-world-chart i:nth-child(2) {
  height: 65%;
  animation-delay: -2s;
}
.auth-world-chart i:nth-child(3) {
  height: 52%;
  animation-delay: -5s;
}
.auth-world-chart i:nth-child(4) {
  height: 80%;
  animation-delay: -1s;
}
.auth-world-chart i:nth-child(5) {
  height: 72%;
  animation-delay: -4s;
}
.auth-world-chart i:nth-child(6) {
  height: 92%;
  animation-delay: -3s;
}
.auth-world-chart i:nth-child(7) {
  height: 82%;
  animation-delay: -6s;
}
.auth-world-lines {
  display: grid;
  gap: 12px;
  padding: 25px 8px 8px;
}
.auth-world-lines i {
  height: 8px;
  width: 85%;
  border-radius: 5px;
  background: #c7d2e33b;
}
.auth-world-lines i:nth-child(2) {
  width: 62%;
}
.auth-world-lines i:nth-child(3) {
  width: 74%;
}
.auth-world-wordmark {
  position: absolute;
  bottom: 50px;
  color: #36547e;
  font-size: 24px;
  letter-spacing: -1.1px;
  font-weight: 600;
}
.auth-world-wordmark span {
  color: #146ce8;
}
.auth-access {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 42px clamp(28px, 5vw, 82px) 28px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.auth-brand-row .anamnesist-wordmark {
  width: 170px;
}
.auth-private {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.auth-private svg {
  width: 14px;
  height: 14px;
}
.auth-content {
  padding: clamp(38px, 6vh, 76px) 0;
  width: 100%;
  max-width: 480px;
  margin: auto;
  animation: access-arrive 0.35s ease both;
}
.auth-content h1 {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 0 0 14px;
  outline: none;
}
.auth-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 30px;
}
.auth-content form {
  display: grid;
  gap: 20px;
}
.auth-content label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  min-width: 0;
}
.auth-content input:not([type='radio']):not([type='checkbox']),
.auth-content select {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  box-shadow: 0 2px 3px #00000002;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.auth-content input:focus-visible,
.auth-content select:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 9%, transparent);
}
.auth-content .select-control {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
.auth-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.auth-field-pair > div {
  min-width: 0;
}
.auth-content [hidden] {
  display: none !important;
}
.auth-field-hint {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}
.auth-password {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password input {
  padding-right: 88px !important;
}
.auth-password button {
  position: absolute;
  right: 12px;
  padding: 8px;
  font-size: 12px;
  background: transparent;
  color: var(--blue);
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}
.auth-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.auth-submit.button {
  min-height: 54px;
  border-radius: 15px;
  padding: 15px 22px;
  justify-content: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  box-shadow: 0 6px 18px -10px #0868e866;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.auth-submit.button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 23px -10px #0868e880;
}
.auth-submit.button:active {
  transform: translateY(0);
}
.auth-submit:disabled {
  opacity: 0.6;
}
.auth-switch-row {
  margin: 24px 0 0;
  text-align: center;
}
.auth-switch-row .button {
  font-size: 14px;
  padding: 10px 18px;
}
.auth-footer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
}
.auth-footer > svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.auth-footer p {
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}
.auth-stepper {
  display: flex;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  gap: 20px;
}
.auth-stepper li {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.auth-stepper li > span {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
}
.auth-stepper [aria-current] {
  color: var(--blue);
}
.auth-stepper [aria-current] > span {
  background: var(--blue);
  color: white;
  border-color: transparent;
}
.auth-stepper .is-complete > span {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: transparent;
}
.auth-stepper svg {
  width: 13px;
  height: 13px;
}
.auth-contract-choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.auth-contract-choice legend {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 12px;
}
.auth-contract-choice label {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.auth-contract-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.auth-contract-choice span {
  display: block;
  padding: 15px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.auth-contract-choice :checked + span {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: var(--blue-bg);
}
.auth-contract-choice :focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.auth-content [role='alert'] {
  color: #b15342;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.auth-content [role='alert']:empty {
  display: none;
}
.auth-received-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 23px;
  color: var(--blue);
  background: var(--blue-bg);
  margin-bottom: 28px;
}
.auth-received-mark svg {
  width: 30px;
  height: 30px;
}
.auth-eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.auth-pending-path {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0 38px;
  color: var(--muted);
  font-size: 12px;
}
.auth-pending-path span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-pending-path span:first-child {
  color: var(--blue);
}
.auth-pending-path svg {
  width: 17px;
  height: 17px;
}
.auth-pending-path i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.is-onboarding {
  max-width: 1000px;
}
.is-onboarding .auth-content {
  max-width: 660px;
  padding-top: 48px;
}
.is-onboarding .auth-content h1 {
  font-size: 34px;
}
.onboarding-steps {
  display: flex;
  gap: 10px;
  padding-bottom: 24px;
}
.onboarding-steps button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.onboarding-steps [aria-current] {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: transparent;
}
.onboarding-steps svg {
  width: 17px;
  height: 17px;
}
.onboarding-configuration .account-panel {
  padding: 25px;
}
.onboarding-configuration .account-panel h2 {
  font-size: 20px;
}
.onboarding-configuration .account-ai-setup > header {
  display: none;
}
.onboarding-provider-note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  background: color-mix(in srgb, var(--blue) 4%, var(--surface));
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.onboarding-provider-note > svg {
  flex: none;
  width: 17px;
  height: 17px;
}
.onboarding-provider-note p {
  margin: 0 0 8px;
}
.onboarding-provider-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
}
.onboarding-provider-note a svg {
  width: 14px;
  height: 14px;
}
.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
}
.onboarding-actions .button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 13px;
}
.admin-pending-summary {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 19px;
  background: var(--blue-bg);
  color: var(--blue);
  margin-bottom: 26px;
  text-align: left;
  cursor: pointer;
}
.admin-pending-summary > svg:last-child {
  margin-left: auto;
}
.admin-request-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
}
.admin-request-profile div {
  min-width: 0;
}
.admin-request-profile dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.admin-request-profile dd {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.admin-request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.admin-request-actions .button {
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 13px;
}
.protocol-reference-fields:has(.protocol-external-toggle) {
  grid-template-columns: minmax(120px, 1.3fr) minmax(110px, 1fr) minmax(110px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.protocol-inspiration .protocol-reference {
  border-bottom: 0;
  border-radius: 10px;
  background: transparent;
}
.protocol-reference input {
  border: 0 !important;
  box-shadow: none !important;
}
.protocol-external-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.protocol-external-toggle > svg {
  width: 15px;
  height: 15px;
}
.protocol-external-toggle i {
  position: relative;
  width: 25px;
  height: 16px;
  background: color-mix(in srgb, var(--muted) 28%, var(--surface));
  border-radius: 10px;
  transition: background 0.2s;
}
.protocol-external-toggle i::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  box-shadow: 0 1px 3px #0002;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}
.protocol-external-toggle[aria-pressed='true'] {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: transparent;
}
.protocol-external-toggle[aria-pressed='true'] i {
  background: var(--blue);
}
.protocol-external-toggle[aria-pressed='true'] i::after {
  transform: translateX(9px);
}
[data-theme='dark'] .auth-world {
  background:
    radial-gradient(ellipse at 20% 15%, #2166ef40, transparent 65%),
    linear-gradient(145deg, #111c30, #11151d 70%);
}
[data-theme='dark'] .auth-world-cards {
  background: #17243cd9;
  border-color: #5d7ca133;
  box-shadow:
    0 30px 70px -25px #0008,
    inset 0 1px 0 #ffffff0c;
}
[data-theme='dark'] .auth-world-app {
  color: #f1f5fc;
}
[data-theme='dark'] .auth-world-wordmark {
  color: #90a8d0;
}
[data-theme='dark'] .auth-content [role='alert'] {
  color: #f2ab9b;
}
@keyframes access-breathe {
  from {
    transform: scaleY(0.86);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes access-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .auth-experience {
    grid-template-columns: minmax(300px, 0.75fr) minmax(500px, 1.25fr);
  }
  .auth-world {
    padding: 36px;
  }
  .auth-access {
    padding-left: 40px;
    padding-right: 40px;
  }
  .auth-private {
    font-size: 10px;
  }
  .protocol-reference-fields:has(.protocol-external-toggle) {
    grid-template-columns: 1fr 1fr;
  }
  .protocol-external-toggle {
    justify-self: start;
  }
  .protocol-reference:first-child {
    grid-column: auto;
  }
}
@media (max-width: 820px) {
  .auth-experience {
    display: block;
    background:
      radial-gradient(
        ellipse at 80% -15%,
        color-mix(in srgb, var(--blue) 9%, transparent),
        transparent 60%
      ),
      var(--surface);
  }
  .auth-world {
    display: none;
  }
  .auth-access {
    max-width: 620px;
    min-height: 100dvh;
    padding: 30px 28px 22px;
  }
  .auth-content {
    padding: 48px 0;
  }
  .auth-content h1 {
    font-size: 34px;
  }
  .auth-content form {
    gap: 20px;
  }
  .is-onboarding .auth-content {
    padding-top: 40px;
  }
  .auth-footer {
    margin-top: 30px;
  }
  .auth-brand-row .anamnesist-wordmark {
    width: 152px;
  }
}
@media (max-width: 480px) {
  .auth-private {
    width: 100%;
    margin-top: -7px;
  }
  .auth-field-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .auth-stepper {
    gap: 14px;
    margin-bottom: 32px;
  }
  .auth-stepper li {
    font-size: 11px;
  }
  .auth-content h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .auth-access {
    padding: 26px 24px 20px;
  }
  .auth-intro {
    font-size: 15px;
  }
  .onboarding-configuration .account-panel {
    padding: 18px;
  }
  .admin-request-profile {
    grid-template-columns: 1fr;
  }
  .protocol-external-toggle {
    font-size: 11px;
    gap: 5px;
    padding: 8px;
  }
  .auth-pending-path {
    gap: 9px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-experience * {
    animation: none !important;
    transition: none !important;
  }
  .protocol-external-toggle i::after {
    transition: none;
  }
}
