@font-face {
  font-family: Geist;
  src: url("./geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root { --font-geist-sans: Geist; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
.signin-links summary { list-style: none; }
.signin-links summary::-webkit-details-marker { display: none; }
.signin-links summary:focus-visible { outline: 2px solid var(--signin-teal); outline-offset: 3px; }

.clinician-signin {
  --signin-ink: #142347;
  --signin-teal: #28796f;
  --signin-teal-deep: #1d635b;
  --signin-muted: #607084;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 28px;
  min-height: 100svh;
  padding: 40px 20px 24px;
  isolation: isolate;
  background:
    radial-gradient(55% 50% at 92% -4%, #4bb8a8 0%, transparent 68%),
    radial-gradient(42% 38% at 8% 108%, #1a6a61 0%, transparent 70%),
    #2a8a7d;
  color: var(--signin-ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.clinician-signin button { font-family: inherit; }
.clinician-signin :is(a, button):focus-visible { outline: 2px solid var(--signin-teal); outline-offset: 3px; border-radius: 4px; }

.signin-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.signin-shape { position: absolute; display: block; animation: signin-float 9s ease-in-out infinite alternate; }

.signin-torus {
  bottom: -18%;
  left: -10%;
  width: clamp(280px, 32vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(225deg, rgb(255 255 255 / .38), rgb(255 255 255 / 0) 42%, rgb(3 45 41 / .4)),
    radial-gradient(circle closest-side, #0e5a53 38%, #2b9184 46%, #74d1c4 58%, #b1ebe1 66%, #78d4c7 76%, #33998c 89%, #17675f);
  -webkit-mask: radial-gradient(circle closest-side, transparent 37.5%, #000 38.5% 98.5%, transparent);
  mask: radial-gradient(circle closest-side, transparent 37.5%, #000 38.5% 98.5%, transparent);
  filter: blur(1.5px);
  animation-duration: 11s;
  animation-delay: -4s;
}

.signin-capsule {
  top: -10%;
  right: -12%;
  width: clamp(320px, 38vw, 580px);
  aspect-ratio: 2.4;
  border-radius: 999px;
  background:
    linear-gradient(rgb(255 255 255 / .55), rgb(255 255 255 / 0) 42%, rgb(3 45 41 / 0) 58%, rgb(3 45 41 / .28)),
    linear-gradient(90deg, #3aa597, #8adacd 55%, #5dc2b4);
  transform: rotate(-32deg);
  filter: blur(8px);
  animation-duration: 13s;
}

.signin-coin {
  top: 16%;
  right: 15%;
  width: clamp(84px, 9vw, 132px);
  aspect-ratio: 1 / .72;
  border-radius: 50% / 29%;
  background: linear-gradient(90deg, #17675f, #2a8b7f 35%, #3fa596 62%, #1a6d64);
  box-shadow: 0 26px 36px -18px rgb(3 40 36 / .55);
  transform: rotate(-22deg);
  filter: blur(0.6px);
  animation-duration: 8s;
  animation-delay: -2s;
}
.signin-coin::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; border-radius: 50%; background: linear-gradient(200deg, #d0f4ed, #93ddd1 55%, #67c7b9); }

@keyframes signin-float { to { translate: 0 14px; } }

.signin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  min-height: 520px;
  padding: 48px 56px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 70px -24px rgb(5 45 41 / .55), 0 10px 24px -10px rgb(5 45 41 / .22);
  text-align: center;
}

.signin-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--signin-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
}
.signin-brand img { width: 32px; height: 32px; object-fit: contain; }

.signin-card h1 {
  max-width: none;
  margin: 28px 0 0;
  color: var(--signin-ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.signin-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.signin-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.signin-form input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--signin-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.signin-form input::placeholder { color: #8a949f; opacity: 1; }
.signin-form input:hover { border-color: #c3ccd2; }
.signin-form input:focus {
  border-color: var(--signin-teal);
  box-shadow: 0 0 0 1px var(--signin-teal), 0 0 0 4px rgb(40 121 111 / .14);
}

.signin-password { position: relative; }
.signin-password input { padding-right: 46px; }
.signin-password-toggle {
  position: absolute;
  inset: 4px 4px 4px auto;
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7a8a92;
  cursor: pointer;
}
.signin-password-toggle:hover { color: var(--signin-teal); background: #f1f8f6; }
.signin-password-toggle svg { width: 18px; height: 18px; }

.signin-submit {
  min-height: 46px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--signin-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.signin-submit:not(:disabled):hover {
  background: var(--signin-teal-deep);
  box-shadow: 0 6px 16px -6px rgb(29 99 91 / .55);
}
.signin-submit:disabled { opacity: 1; cursor: default; }

.signin-error, .signin-help, .signin-noscript {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.signin-error, .signin-noscript {
  border: 1px solid #eed1c5;
  background: #fff6f1;
  color: #8b4436;
}
.signin-help {
  margin-top: 14px;
  border: 1px solid #cbdedb;
  background: #f3f9f7;
  color: var(--signin-teal);
}

.signin-links {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 28px;
}
.signin-links a,
.signin-text-button {
  color: var(--signin-teal);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.signin-links a strong { font-weight: 700; }
.signin-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.signin-links a:hover,
.signin-text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signin-card-footer {
  margin-top: auto;
  padding-top: 36px;
  font-size: 12px;
  line-height: 1.55;
  color: #6a7684;
}
.signin-card-footer p { margin: 0; }
.signin-card-footer a {
  color: var(--signin-teal);
  font-weight: 550;
}
.signin-card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signin-copyright {
  margin: 0;
  color: rgb(255 255 255 / .84);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .signin-coin { top: 12%; right: 6%; }
}

@media (max-height: 720px) {
  .signin-card { min-height: 0; }
}

@media (max-width: 560px) {
  .clinician-signin { gap: 18px; padding: 28px 14px 18px; }
  .signin-card {
    min-height: 0;
    padding: 40px 22px 24px;
    border-radius: 14px;
  }
  .signin-card h1 { margin-top: 22px; }
  .signin-form { margin-top: 24px; }
  .signin-form input { height: 48px; font-size: 16px; }
  .signin-submit { min-height: 48px; font-size: 15px; }
  .signin-links { gap: 12px; margin-top: 24px; }
  .signin-links a,
  .signin-text-button { padding-block: 4px; }
  .signin-card-footer { padding-top: 28px; }
  .signin-torus { bottom: -60px; left: -90px; width: 230px; }
  .signin-capsule { top: -30px; right: -120px; width: 300px; }
  .signin-coin { top: 3%; right: auto; left: 9%; width: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .clinician-signin *,
  .clinician-signin *::before,
  .clinician-signin *::after {
    transition: none !important;
    animation: none !important;
  }
}
