/* Presentation only. The native current-password form is the scope gate.
   No remote assets, generated text, auth interception or global UI rules. */
#app > .min-h-screen:has(#password[autocomplete="current-password"]) {
  --relay-login-skin: active;
  --rl-forest: #172d24;
  --rl-lime: #d4f57c;
  --rl-ink: #192b23;
  --rl-muted: #67716a;
  min-height: 100svh;
  padding: 48px 32px;
  overflow: visible;
  background: #f6f7f3;
  color: var(--rl-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Only the original decorative background layers are suppressed. */
#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .absolute,
#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .pointer-events-none {
  display: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  column-gap: 52px;
  row-gap: 24px;
  align-items: center;
  max-width: 1000px;
  padding: 56px;
  border: 1px solid #274536;
  border-radius: 26px;
  background: var(--rl-forest);
  box-shadow: 0 24px 70px #172d2414;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mb-8 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding-block: 20px;
  text-align: left;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mb-8 > .inline-flex {
  width: 72px;
  height: 72px;
  margin-bottom: 30px;
  border: 1px solid #a8bda329;
  border-radius: 18px;
  background: #ffffff07;
  box-shadow: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) h1 {
  margin-bottom: 16px;
  background: none;
  color: #f6f8ef;
  -webkit-text-fill-color: currentColor;
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.3;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) h1 + p {
  color: #c8d5bc;
  font-size: 1.0625rem;
  line-height: 1.9;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .card-glass {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 32px;
  border: 1px solid #eef1e8;
  border-radius: 18px;
  background: #ffffff;
  color: var(--rl-ink);
  box-shadow: 0 12px 32px #071a1321;
  backdrop-filter: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .card-glass h2 {
  color: var(--rl-ink);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -.7px;
  line-height: 1.4;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .card-glass h2 + p {
  margin-top: 8px;
  color: var(--rl-muted);
  font-size: .875rem;
  line-height: 1.7;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .input-label {
  margin-bottom: 9px;
  color: #405144;
  font-size: .875rem;
  font-weight: 550;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .input {
  min-height: 48px;
  border-radius: 9px;
  background: #fcfdf9;
  color: var(--rl-ink);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .input:not(.input-error) {
  border-color: #cbd4c6;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .input::placeholder {
  color: #687361;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .input:not(.input-error):focus {
  border-color: #4d6a42;
  outline: 2px solid #698757;
  outline-offset: 2px;
  --tw-ring-shadow: 0 0 #0000;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn {
  min-height: 48px;
  border-radius: 9px;
  font-size: .9375rem;
  white-space: normal;
  font-weight: 600;
  line-height: 1.5;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn-primary {
  border: 1px solid #bfdc6c;
  background: var(--rl-lime);
  color: var(--rl-forest);
  box-shadow: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn-primary:not(:disabled):hover {
  background: #e1ffa0;
  border-color: #a8c459;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn-primary svg {
  color: inherit;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn-secondary {
  border: 1px solid #d5ddcf;
  background: #f4f7ef;
  color: #344a36;
  box-shadow: none;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) .btn-secondary:not(:disabled):hover {
  background: #eaf0e1;
  border-color: #a6b59b;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) form .text-xs {
  color: #687361;
  font-size: .8125rem;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) form a {
  color: #426044;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) :is(button, a):focus-visible {
  outline: 2px solid #73953f;
  outline-offset: 4px;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mt-6 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: .875rem;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mt-6 p {
  color: #c5d1ba;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mt-6 a {
  color: var(--rl-lime);
  text-underline-offset: 4px;
}

#app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mt-8 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #aebea2;
  font-size: .75rem;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 760px) {
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) {
    padding: 28px 16px;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-width: 480px;
    padding: 32px 24px 26px;
    border-radius: 22px;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mb-8 {
    padding: 0;
    text-align: center;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mb-8 > .inline-flex {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 13px;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) h1 {
    margin-bottom: 8px;
    font-size: 1.9375rem;
    letter-spacing: -1px;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) h1 + p {
    font-size: .875rem;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .card-glass {
    width: 100%;
    padding: 26px 22px;
    border-radius: 14px;
  }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .mt-8 {
    text-align: center;
  }
}

@media (max-width: 370px) {
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) { padding-inline: 10px; }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md { padding-inline: 16px; }
  #app > .min-h-screen:has(#password[autocomplete="current-password"]) > .max-w-md > .card-glass { padding-inline: 18px; }
}
