:root {
  font-family: 'DM Sans', sans-serif;
  color: #eaf1fc;
  background: #1b273b;
  font-synthesis: none;
  --panel: #1e2b40;
  --ink: #edf3fe;
  --muted: #a9b9d2;
  --line: #3b4c68;
  --field: #24334b;
  --note: #253750;
  --blue: #92b7ff;
  --button: #8eb4fc;
  --button-ink: #112c58;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #82b8ff;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2,
.brand {
  font-family: Manrope, sans-serif;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background:
    radial-gradient(ellipse at 0 5%, #4c91ff80, transparent 50%),
    linear-gradient(145deg, #2969e5 0%, #2653af 44%, #213e7e 100%);
  color: #fff;
  position: relative;
  padding: 44px 10%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-story:after {
  content: '';
  width: 550px;
  height: 550px;
  border: 1px solid #bfd5ff15;
  border-radius: 50%;
  position: absolute;
  right: -355px;
  bottom: -50px;
  box-shadow:
    0 0 0 65px #bfd5ff07,
    0 0 0 130px #bfd5ff04;
  pointer-events: none;
}
.brand {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
}
.brand b {
  font-weight: 800;
}
.brand i {
  font-style: normal;
  color: #8de4dd;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #ffffff18;
  border: 1px solid #d3e3ff35;
  border-radius: 13px;
  margin-right: 11px;
}
.story-body {
  margin: auto 0;
  padding: 52px 0 30px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  color: #c6ddff;
}
.login-story h1 {
  font-size: clamp(35px, 3.5vw, 52px);
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 19px 0;
}
.story-body > p {
  font-size: 14px;
  line-height: 1.9;
  color: #d6e4ff;
  max-width: 360px;
}
.care-scene {
  max-width: 380px;
  margin: 37px 0 31px;
  position: relative;
  padding: 0 12px;
}
.scene-orbit {
  position: absolute;
  width: 265px;
  height: 265px;
  border-radius: 50%;
  border: 1px dashed #b5d0ff35;
  left: calc(50% - 132px);
  top: 9px;
}
.scene-card {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #a3c5ff50;
  background: linear-gradient(120deg, #4c7ad7ef, #4163b3e6);
  padding: 15px 17px;
  border-radius: 15px;
  box-shadow: 0 10px 28px #112f6e28;
  width: 85%;
}
.doctor-card {
  margin-left: 0;
  transform: rotate(-3deg);
}
.patient-card {
  margin-left: auto;
  transform: rotate(3deg);
}
.scene-card small,
.shared-record small {
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 600;
  display: block;
  color: #c3ddff;
}
.scene-card b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}
.scene-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c8eeff, #7db5ff);
  color: #265cc5;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 3px 4px 0 #123b9835;
}
.patient-icon {
  background: linear-gradient(145deg, #a3f4df, #4fbdc2);
  color: #187586;
}
.scene-dot {
  height: 7px;
  width: 7px;
  background: #8ce5d5;
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 0 4px #8ce5d51c;
}
.shared-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  position: relative;
  background: linear-gradient(135deg, #d0ebff, #b3d5fe);
  border: 1px solid #e1f0ff;
  border-radius: 15px;
  padding: 20px 15px;
  color: #1e4a97;
  box-shadow: 0 12px 30px #163a7d35;
}
.shared-record small {
  color: #4c71a9;
}
.shared-record b {
  font-size: 14px;
  display: block;
  margin-top: 6px;
}
.connection-line {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.connection-line span {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #aacdff;
}
.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.story-pills span {
  font-size: 10px;
  border: 1px solid #c2dbff40;
  border-radius: 30px;
  padding: 8px 11px;
  background: #ffffff0a;
}
.story-footer {
  font-size: 10px;
  color: #ccdcf6;
  position: relative;
  z-index: 1;
}
.login-form-panel {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  padding: 44px 10%;
  min-width: 0;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.preview-badge {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.preview-badge i {
  width: 5px;
  height: 5px;
  background: #6ed6bd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #6ed6bd12;
}
.login-top button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 10px;
}
.form-content {
  max-width: 370px;
  width: 100%;
  margin: auto;
  padding: 58px 0 48px;
}
.welcome-icon {
  width: 51px;
  height: 51px;
  border: 1px solid #719fe05c;
  background: linear-gradient(145deg, #4f7fc328, #769cd210);
  color: var(--blue);
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 29px;
  box-shadow: 0 5px 18px #0c1d3420;
}
.form-eyebrow {
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 1.7px;
}
.form-content h2 {
  font-size: 32px;
  letter-spacing: -1.15px;
  line-height: 1.25;
  color: var(--ink);
  margin: 11px 0;
}
.form-intro {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
form {
  margin-top: 30px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
input {
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  padding: 13px 14px;
  font-size: 12px;
  height: 46px;
}
input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
input:focus {
  border-color: var(--blue);
}
#identifier {
  margin-bottom: 20px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.password-field button {
  position: absolute;
  top: 3px;
  right: 4px;
  height: 40px;
  width: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  border-radius: 7px;
}
.sign-in {
  background: var(--button);
  color: var(--button-ink);
  width: 100%;
  border: 0;
  border-radius: 10px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 24px;
  box-shadow: 0 4px 14px #132f5915;
}
.sign-in:hover {
  filter: brightness(1.06);
}
#login-error {
  font-size: 11px;
  line-height: 1.7;
  color: #ffb8b8;
  margin-top: 12px;
  padding: 10px 12px;
  background: #e6686812;
  border: 1px solid #e6686850;
  border-radius: 8px;
}
.access-note {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  align-items: flex-start;
  color: var(--blue);
}
.access-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.access-note p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.access-note p span {
  font-size: 9px;
  opacity: 0.8;
}
.presentation-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--note);
  padding: 16px 17px;
  margin-top: 29px;
}
.presentation-note b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.presentation-note p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin-top: 6px;
}
.presentation-note strong {
  font-weight: 500;
  color: var(--blue);
}
.form-footer {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  opacity: 0.8;
  line-height: 1.7;
}
:root[data-theme='light'] {
  color-scheme: light;
  --panel: #f8fafd;
  --ink: #182942;
  --muted: #74849c;
  --line: #dde5f0;
  --field: #fff;
  --note: #eff4fc;
  --blue: #3168c8;
  --button: #3272ed;
  --button-ink: #fff;
  background: #f8fafd;
}
:root[data-theme='light'] #login-error {
  color: #a52f3f;
}
@media (min-width: 1500px) {
  .login-story,
  .login-form-panel {
    padding-left: 13%;
    padding-right: 13%;
  }
}
@media (max-width: 850px) {
  .login-story,
  .login-form-panel {
    padding: 32px 8%;
  }
  .login-story h1 {
    font-size: 34px;
  }
  .story-pills span {
    font-size: 9px;
  }
  .care-scene {
    padding: 0;
  }
  .scene-card {
    width: 95%;
  }
  .shared-record b {
    font-size: 12px;
  }
  .login-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-content h2 {
    font-size: 29px;
  }
}
@media (max-width: 640px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 25px 30px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .story-body {
    padding: 28px 0 0;
  }
  .story-body .eyebrow {
    font-size: 8px;
  }
  .login-story h1 {
    font-size: 32px;
    letter-spacing: -1.3px;
    margin: 12px 0;
  }
  .login-story h1 br {
    display: none;
  }
  .story-body > p {
    font-size: 12px;
    line-height: 1.75;
    max-width: 400px;
  }
  .care-scene,
  .story-footer,
  .story-pills {
    display: none;
  }
  .login-form-panel {
    padding: 25px;
    min-height: 640px;
  }
  .form-content {
    padding: 33px 0;
    max-width: 420px;
  }
  .welcome-icon {
    margin-bottom: 20px;
  }
  .form-footer {
    padding-top: 5px;
  }
  .login-story:after {
    width: 250px;
    height: 250px;
    right: -150px;
  }
  .form-content h2 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
