:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #041014;
  color: #f2f7f4;
}

* { box-sizing: border-box; }

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

body {
  overflow: hidden;
  background: #041014;
}

button,
input { font: inherit; }

[hidden] { display: none !important; }

.lp-shell-boot {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #041014;
}

.lp-shell-boot-panel {
  width: min(420px, 100%);
  text-align: center;
}

.lp-shell-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border: 1px solid #285249;
  border-radius: 50%;
}

.lp-shell-spinner::before,
.lp-shell-spinner::after {
  position: absolute;
  inset: 9px;
  border: 3px solid transparent;
  border-top-color: #67d49b;
  border-radius: 50%;
  content: "";
  animation: lp-shell-spin 1.1s linear infinite;
}

.lp-shell-spinner::after {
  inset: 20px;
  border-top-color: #d5ad52;
  animation-direction: reverse;
  animation-duration: .8s;
}

.lp-shell-boot h1 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: 0;
}

.lp-shell-boot p {
  margin: 0;
  color: #b9c7c1;
  line-height: 1.5;
}

.lp-shell-boot.is-error .lp-shell-spinner::before,
.lp-shell-boot.is-error .lp-shell-spinner::after {
  animation-play-state: paused;
}

.lp-shell-boot-retry {
  min-height: 48px;
  margin-top: 22px;
  border: 1px solid rgba(103, 212, 155, .72);
  border-radius: 8px;
  padding: 0 22px;
  background: #197c5c;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.lp-shell-boot-retry:focus-visible {
  outline: 3px solid #efca74;
  outline-offset: 3px;
}

.lp-shell-intro {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 58%, rgba(214, 173, 82, .42), transparent 24%),
    radial-gradient(circle at 70% 22%, rgba(44, 122, 194, .34), transparent 34%),
    linear-gradient(145deg, #01030a 0%, #071329 48%, #04110e 100%);
}

.lp-shell-copy {
  position: absolute;
  top: clamp(32px, 7vh, 76px);
  left: clamp(28px, 6vw, 90px);
  z-index: 4;
  width: min(510px, calc(100vw - 56px));
  text-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.lp-shell-copy h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.lp-shell-lead {
  max-width: 460px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .95);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 800;
  line-height: 1.35;
}

.lp-shell-note {
  max-width: 470px;
  margin: 10px 0 0;
  color: rgba(224, 238, 235, .78);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;
}

.lp-shell-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.lp-shell-action,
.lp-shell-submit,
.lp-shell-back,
.lp-shell-tab,
.lp-shell-forgot {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.lp-shell-action {
  min-height: 50px;
  border-radius: 6px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 900;
}

.lp-shell-action.is-primary {
  border: 1px solid #efca74;
  background: #d5ad52;
  color: #071012;
}

.lp-shell-action.is-secondary {
  border: 1px solid rgba(135, 231, 212, .58);
  background: rgba(5, 18, 22, .82);
}

.lp-shell-scene {
  position: absolute;
  top: 56%;
  left: 58%;
  width: min(92vw, 980px);
  aspect-ratio: 1.3;
  transform: translate(-50%, -50%);
}

.lp-shell-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 2.2;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 48px rgba(214, 173, 82, .24);
  animation: lp-shell-breathe 6s ease-in-out infinite;
}

.lp-shell-ring:nth-child(1) { width: 100%; }
.lp-shell-ring:nth-child(2) { width: 82%; animation-delay: -.8s; }
.lp-shell-ring:nth-child(3) { width: 64%; animation-delay: -1.6s; }
.lp-shell-ring:nth-child(4) { width: 46%; animation-delay: -2.4s; }
.lp-shell-ring:nth-child(5) { width: 28%; animation-delay: -3.2s; }

.lp-shell-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #10202a;
  box-shadow: 0 0 82px rgba(214, 173, 82, .55);
  font-weight: 900;
}

.lp-shell-auth {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: grid;
  place-items: center end;
  overflow: auto;
  padding: 28px clamp(24px, 7vw, 110px);
  background: rgba(2, 8, 10, .48);
  backdrop-filter: blur(10px) saturate(.8) brightness(.7);
}

.lp-shell-auth-panel {
  width: min(500px, 100%);
  border: 1px solid #2c4548;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(8, 18, 21, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
}

.lp-shell-back {
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  color: #9eb1ac;
}

.lp-shell-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #294043;
  border-radius: 6px;
  padding: 4px;
}

.lp-shell-tab {
  min-height: 42px;
  border-radius: 4px;
  background: transparent;
  color: #8fa19c;
  font-weight: 800;
}

.lp-shell-tab[aria-selected="true"] {
  background: #213638;
  color: #f4f8f6;
}

.lp-shell-heading h2 {
  margin: 28px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.lp-shell-heading p {
  margin: 0 0 24px;
  color: #9db0aa;
  line-height: 1.5;
}

.lp-shell-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #dfe8e4;
  font-size: 14px;
  font-weight: 700;
}

.lp-shell-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #355055;
  border-radius: 5px;
  padding: 0 14px;
  background: #0d191d;
  color: #fff;
  outline: none;
}

.lp-shell-field input:focus { border-color: #67d49b; }

.lp-shell-field-hint {
  display: block;
  margin-top: 7px;
  color: rgba(224, 238, 235, .72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.lp-shell-field-hint[hidden] { display: none; }

.lp-shell-password-control {
  position: relative;
  display: block;
}

.lp-shell-password-control input {
  padding-right: 58px;
}

.lp-shell-password-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #72d8b8;
  cursor: pointer;
  touch-action: manipulation;
}

.lp-shell-password-toggle:hover,
.lp-shell-password-toggle[aria-pressed="true"] {
  background: rgba(103, 212, 155, .12);
}

.lp-shell-password-toggle:focus-visible {
  outline: 3px solid rgba(239, 202, 116, .78);
  outline-offset: 1px;
}

.lp-shell-password-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-shell-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #9eb0aa;
  font-size: 13px;
  line-height: 1.45;
}

.lp-shell-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border-radius: 5px;
  background: #d5ad52;
  color: #071012;
  font-weight: 900;
}

.lp-shell-submit:disabled { cursor: not-allowed; opacity: .5; }

.lp-shell-forgot {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  color: #93cbbb;
}

.lp-shell-message {
  min-height: 24px;
  margin-top: 18px;
  color: #a8bbb5;
  font-size: 13px;
  line-height: 1.5;
}

.lp-shell-message.is-error { color: #f39a9d; }

@keyframes lp-shell-spin { to { transform: rotate(360deg); } }

@keyframes lp-shell-breathe {
  0%, 100% { opacity: .66; transform: translate(-50%, -50%) scale(.99); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.015); }
}

@media (max-width: 760px) {
  .lp-shell-copy {
    top: 30px;
    right: 20px;
    left: 20px;
    width: auto;
    text-align: center;
  }

  .lp-shell-copy h1 { font-size: 54px; }

  .lp-shell-actions {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    max-width: 350px;
    margin: 20px auto 0;
  }

  .lp-shell-action { padding: 0 10px; }

  .lp-shell-scene {
    top: 67%;
    left: 50%;
    width: 130vw;
  }

  .lp-shell-auth {
    place-items: end center;
    padding: 18px;
  }

  .lp-shell-auth-panel {
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-shell-spinner::before,
  .lp-shell-spinner::after,
  .lp-shell-ring { animation: none; }
}
