.lifeos-orbit-loader {
  --lifeos-orbit-size: 1.9rem;
  display: inline-grid;
  flex: 0 0 auto;
  width: var(--lifeos-orbit-size);
  height: var(--lifeos-orbit-size);
  place-items: center;
  vertical-align: middle;
}

.lifeos-orbit-loader[data-orbit-size="inline"] { --lifeos-orbit-size: 2.5rem; }
.lifeos-orbit-loader[data-orbit-size="mini"] { --lifeos-orbit-size: 1.35rem; }
.lifeos-orbit-loader[data-orbit-size="screen"] { --lifeos-orbit-size: clamp(6rem, 12vw, 7.75rem); }

.lifeos-orbit-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.lifeos-orbit-mark,
.lifeos-pull-refresh[data-state="refreshing"]::before {
  transform-origin: 58% 54%;
  filter: brightness(0) invert(76%) sepia(40%) saturate(260%) hue-rotate(-10deg) drop-shadow(0 0 5px rgb(216 181 110 / 30%));
  animation: lifeos-orbit-turn 14s linear infinite;
}

.lifeos-pull-refresh[data-state="refreshing"]::before {
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  border-radius: 0;
  background: url("/assets/edf6787f7_Asset31xtransparent-B0ue_Cax.png") center / contain no-repeat;
}

@keyframes lifeos-orbit-turn {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lifeos-orbit-mark, .lifeos-pull-refresh[data-state="refreshing"]::before { animation: none; }
}

.lifeos-orbit-screen {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: radial-gradient(ellipse at 50% 38%, #233a54, transparent 52%), #0c182a;
}

.lifeos-orbit-wordmark {
  color: #e7d8b8;
  font: 650 .78rem/1.5 Manrope, system-ui, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
}

#root .lifeos-auth-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 33rem) minmax(0, 30rem);
  justify-content: center;
  align-items: stretch;
  align-content: center;
  gap: clamp(2.4rem, 6vw, 6rem);
  padding: calc(env(safe-area-inset-top) + clamp(1.4rem, 4vw, 4rem))
    max(env(safe-area-inset-right), clamp(1.35rem, 5.5vw, 6rem))
    calc(env(safe-area-inset-bottom) + clamp(1.4rem, 4vw, 4rem))
    max(env(safe-area-inset-left), clamp(1.35rem, 5.5vw, 6rem));
  background:
    radial-gradient(ellipse at 24% 48%, #31475f 0%, transparent 46%),
    radial-gradient(ellipse at 82% 6%, rgb(98 126 154 / 22%), transparent 42%),
    linear-gradient(145deg, #0c1729, #172c44 57%, #0a1527);
}

.lifeos-auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 30rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1rem;
}

.lifeos-auth-logo {
  display: inline-flex;
  align-items: center;
  padding: .58rem .9rem;
  border: 1px solid #cfb17e;
  border-radius: .8rem;
  background: linear-gradient(135deg, #fff8e9, #e9d7ad);
  box-shadow: 0 10px 26px #07182cb8;
}

.lifeos-auth-logo img {
  display: block;
  width: 9rem;
  height: auto;
}

.lifeos-auth-environment {
  color: #e5d5b3;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.lifeos-auth-art {
  position: absolute;
  z-index: -1;
  inset: 4.4rem -4.4rem 1rem -1.7rem;
  pointer-events: none;
  background: radial-gradient(ellipse at 47% 50%, rgb(204 167 111 / 13%), transparent 63%);
}

.lifeos-auth-art::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(146deg, #fef2d0, #d6ae73 44%, #5d6c7f 79%);
  mask: url("/assets/edf6787f7_Asset31xtransparent-B0ue_Cax.png") center / contain no-repeat;
  opacity: .58;
}

#root .lifeos-auth-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: clamp(1.4rem, 4.2vw, 3.25rem);
  border: 1px solid #c8a975;
  border-radius: 1.55rem;
  background:
    radial-gradient(ellipse at 96% 0%, #e9eefa, transparent 68%),
    linear-gradient(150deg, #fffefa, #faf5e9);
  color: #1b3049;
  box-shadow: inset 0 2px #f0dbae, 0 27px 70px #020a1a74;
}

#root .lifeos-auth-panel h1 {
  margin: 0;
  color: #152942;
  font-size: clamp(2.75rem, 4.4vw, 4.2rem);
  font-weight: 400;
  line-height: .98;
}

#root .lifeos-auth-intro {
  margin: .65rem 0 1.75rem;
  color: #465d73;
  font-size: .94rem;
  line-height: 1.45;
}

.lifeos-auth-form {
  display: grid;
  gap: 1rem;
}

.lifeos-auth-field {
  display: grid;
  min-width: 0;
  gap: .42rem;
}

#root .lifeos-auth-field label,
#root .lifeos-auth-panel form > label { color: #253c56; font-size: .9rem; font-weight: 700; }

#root .lifeos-auth-panel .independent-input {
  min-height: 48px;
  border: 1px solid #8594a6;
  border-radius: .68rem;
  background: #fffefb;
  color: #1b3049;
  font-size: 1rem;
}

#root .lifeos-auth-panel :is(button,input):focus-visible {
  outline: 2px solid #7b5728;
  outline-offset: 2px;
}

.lifeos-auth-password { position: relative; }
#root .lifeos-auth-password input { padding-inline-end: 4rem; }

#root .lifeos-auth-visibility {
  position: absolute;
  inset: 2px 4px 2px auto;
  min-width: 3.5rem;
  border-radius: .5rem;
  color: #354d66;
  font-size: .86rem;
  font-weight: 700;
}

#root .lifeos-auth-visibility:hover { background: #eef2f8; }

#root .lifeos-auth-forgot {
  min-height: 44px;
  justify-self: end;
  padding: 0 .16rem;
  color: #344d68;
  font-size: .88rem;
  font-weight: 670;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

#root .lifeos-auth-panel .lifeos-auth-submit,
#root .lifeos-auth-panel .lifeos-auth-create {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid #b3935b;
  border-radius: .7rem;
  font-size: .94rem;
  font-weight: 750;
}

#root .lifeos-auth-panel .lifeos-auth-submit {
  background: linear-gradient(150deg, #203e5d, #14273e);
  color: #fff0ce;
  box-shadow: 0 8px 18px rgb(21 44 70 / 20%);
}
#root .lifeos-auth-panel .lifeos-auth-submit:hover:not(:disabled) { background: #304d69; }
#root .lifeos-auth-panel .lifeos-auth-create { background: rgb(255 254 250 / 70%); color: #223d59; }
#root .lifeos-auth-panel .lifeos-auth-create:hover:not(:disabled) { background: #f8edd5; }

#root .lifeos-auth-feedback {
  margin: 0;
  padding: .62rem .72rem;
  border-color: #c8af80;
  border-radius: .58rem;
  background: #f9eed5;
  color: #463518;
  font-size: .89rem;
}

.lifeos-auth-working { display: flex; align-items: center; gap: .5rem; margin-block: .65rem; }

@media (max-width: 752px) {
  #root .lifeos-auth-shell { grid-template-columns: minmax(0, 28rem); gap: 1rem; }
  .lifeos-auth-brand { min-height: 0; flex-flow: row wrap; align-items: center; padding: .35rem 0; }
  .lifeos-auth-logo { padding: .45rem .64rem; }
  .lifeos-auth-logo img { width: 6.9rem; }
  .lifeos-auth-environment { font-size: .64rem; letter-spacing: .09em; }
  .lifeos-auth-art { inset: -7rem -1rem -19rem 22%; }
  .lifeos-auth-art::before { opacity: .24; }
  #root .lifeos-auth-panel { border-radius: 1.13rem; }
}

@media (max-height: 600px) and (min-width: 753px) {
  .lifeos-auth-brand { min-height: 25rem; }
}
