:root {
  color-scheme: light;
  --blue: #2571b7;
  --line: #d0caf9;
  --lavender: #9d91f4;
  --lavender-stroke: #968ce2;
  --eye: #867ad3;
  --card-blue: #8cdbf5;
  --card-pink: #f59aa6;
  --card-sand: #f6d38e;
  --icon-muted: rgba(139, 175, 219, 0.5);
  --dashboard-bottom: #f1eefe;
  --ui: calc(100vw / 375);
  --dashboard-side: 4.8vw;
  --dashboard-top: 4.6vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--blue);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-frame {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
}

.auth-screen,
.dashboard-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-screen.is-hidden,
.dashboard-screen {
  display: none;
}

.dashboard-screen.is-visible,
.auth-screen {
  display: block;
}

.auth-root,
.dashboard-root {
  position: relative;
  width: 100%;
  height: 100%;
}

.layout-root {
  position: relative;
  width: 100%;
  height: 100%;
}

.auth-screen {
  background: var(--blue);
}

.layout-root-auth {
  overflow: hidden;
}

.auth-panel {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 88.793103%;
  border-radius: 6.666667% 6.666667% 0 0;
  background: linear-gradient(180deg, #fff 13.54%, #f6f4ff 76.56%);
}

.auth-copy {
  position: absolute;
  left: 7.466667%;
  top: 13.669951%;
  width: 74.666667%;
}

.auth-logo {
  display: block;
  width: 49.866667%;
  height: auto;
}

.auth-subtitle {
  width: 59.029867%;
  margin: 2.216749% 0 0;
  color: var(--blue);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.2vw;
  font-weight: 400;
  line-height: normal;
}

.auth-form {
  position: absolute;
  inset: 0;
}

.field {
  position: absolute;
  left: 7.466667%;
  width: 81.6%;
  height: 7.019704%;
}

.login-field {
  top: 37.561576%;
}

.password-field {
  top: 45.935961%;
}

.field-input-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.field-input-shell .field-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.8%;
  height: 31.578947%;
}

.login-icon-body,
.login-icon-head,
.password-icon-lock,
.password-icon-arch,
.password-eye-icon {
  position: absolute;
}

.login-icon-body {
  left: 0;
  top: 47.368421%;
  left: 0;
  width: 85.714%;
  height: auto;
}

.login-icon-head {
  top: 0;
  left: 21.428%;
  width: 42.857%;
  height: auto;
}

.password-icon-lock {
  top: 34.210526%;
  left: 0;
  width: 90%;
  height: auto;
}

.password-icon-arch {
  top: 0;
  left: 20%;
  width: 49.5%;
  height: auto;
}

.text-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 0 34.210526% 6.535948%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--blue);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.2vw;
  font-weight: 500;
  line-height: normal;
  caret-color: var(--blue);
}

.text-input::placeholder {
  color: var(--blue);
  opacity: 1;
}

.field-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.login-field.is-focused .field-line,
.login-field.is-filled .field-line,
.password-field.is-focused .field-line,
.password-field.is-filled .field-line {
  background: var(--lavender-stroke);
}

.password-field .field-input-shell {
  height: 100%;
}

.password-input[type="password"] {
  color: transparent;
}

.password-dots {
  position: absolute;
  left: 7.51634%;
  top: 38.596491%;
  display: flex;
  gap: 2.287582%;
  pointer-events: none;
}

.password-dots span {
  width: 2.614379%;
  height: 14.035088%;
  border-radius: 999px;
  background: rgba(157, 145, 244, 0.2);
}

.password-dots span.is-filled {
  background: var(--lavender);
}

.password-eye {
  position: absolute;
  right: 0;
  top: 31.578947%;
  width: 5.228758%;
  height: 17.54386%;
  padding: 0;
  border: 0;
  background: transparent;
}

.password-eye-icon {
  inset: 0;
  width: 100%;
  height: 100%;
}

.remember-field {
  position: absolute;
  left: 8%;
  top: 58.743842%;
  width: 80.8%;
  height: 3.407389%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-label,
.forgot-password {
  color: var(--blue);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.2vw;
  line-height: normal;
}

.remember-label {
  font-weight: 500;
}

.remember-toggle {
  position: relative;
  width: 13.531353%;
  height: 75.961538%;
  padding: 0;
  border: 1.5px solid var(--lavender-stroke);
  border-radius: 999px;
  background: transparent;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.remember-thumb {
  position: absolute;
  top: 50%;
  left: 9.756098%;
  width: 32.195122%;
  height: 63.157895%;
  border-radius: 50%;
  background: var(--lavender);
  transform: translateY(-50%);
  transition: left 160ms ease;
}

.remember-toggle.is-on {
  background: rgba(157, 145, 244, 0.18);
}

.remember-toggle.is-on .remember-thumb {
  left: 58.04878%;
}

.auth-button {
  position: absolute;
  left: 8%;
  top: 67.980296%;
  width: 80%;
  height: 6.034483%;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-button:disabled {
  background: rgba(37, 113, 183, 0.42);
}

.auth-button.is-ready {
  box-shadow: 0 10px 22px rgba(37, 113, 183, 0.18);
}

.auth-button.is-pressed:not(:disabled) {
  transform: scale(0.985);
}

.auth-button.is-loading:not(:disabled) {
  opacity: 0.88;
}

.auth-button-label {
  color: #fff;
  text-align: center;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.3576vw;
  font-weight: 600;
  line-height: 1;
}

.forgot-password {
  position: absolute;
  left: 28.7192%;
  top: 77.093596%;
  width: 42.547467%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.dashboard-screen {
  background: linear-gradient(180deg, #fff 0%, #f6f4ff 57.29%);
}

.dashboard-root {
  background: linear-gradient(180deg, #fff 0%, #f6f4ff 57.29%);
}

.layout-root-dashboard {
  overflow: hidden;
}

.dashboard-cards-scroll {
  position: absolute;
  left: 7.466667%;
  top: 9.605911%;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 3.733333%;
  padding-right: 7.466667%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.dashboard-cards-scroll::-webkit-scrollbar {
  display: none;
}

.dashboard-card {
  position: relative;
  flex: 0 0 33.6%;
  width: 33.6%;
  height: 25%;
  min-width: 126px;
  min-height: 203px;
  border-radius: 15px;
  overflow: hidden;
  scroll-snap-align: start;
}

.dashboard-card-clients {
  background: var(--card-blue);
}

.dashboard-card-claims {
  background: var(--card-pink);
}

.dashboard-card-staff {
  background: var(--card-sand);
}

.dashboard-card-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.6) 0 18px, transparent 19px),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.55) 0 24px, transparent 25px),
    radial-gradient(circle at 24% 84%, rgba(255, 255, 255, 0.45) 0 20px, transparent 21px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
}

.dashboard-card-title {
  position: absolute;
  left: 8.730159%;
  bottom: 14.778325%;
  width: 82.539683%;
  color: #fff;
  text-align: center;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.968vw;
  font-weight: 700;
  line-height: normal;
}

.dashboard-card-value {
  position: absolute;
  left: 15.873016%;
  bottom: 29.55665%;
  width: 69.047619%;
  color: #fff;
  text-align: center;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.2vw;
  font-weight: 600;
  line-height: normal;
}

.dashboard-bottom-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(76px * var(--ui));
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: calc(46px * var(--ui));
  padding:
    calc(23px * var(--ui))
    calc(49px * var(--ui))
    calc(29px * var(--ui) + env(safe-area-inset-bottom));
  background: var(--dashboard-bottom);
}

.dashboard-nav-item {
  width: auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-home-icon,
.nav-chat-icon,
.nav-book-icon,
.nav-bell-icon,
.nav-profile-icon {
  flex: 0 0 auto;
}

.nav-home-icon {
  width: calc(21.6px * var(--ui));
  height: calc(24px * var(--ui));
  min-width: 21.6px;
  min-height: 24px;
}

.nav-chat-icon {
  width: calc(24.036px * var(--ui));
  height: calc(24px * var(--ui));
  min-width: 24.036px;
  min-height: 24px;
}

.nav-book-icon {
  width: calc(20.645px * var(--ui));
  height: calc(24px * var(--ui));
  min-width: 20.645px;
  min-height: 24px;
}

.nav-bell-icon {
  width: calc(24px * var(--ui));
  height: calc(24px * var(--ui));
  min-width: 24px;
  min-height: 24px;
}

.nav-profile-icon {
  width: calc(26.526px * var(--ui));
  height: calc(24px * var(--ui));
  min-width: 26.526px;
  min-height: 24px;
}

@media (display-mode: standalone) {
  .app-frame {
    width: 100%;
    height: 100%;
  }
}
