.local-auth {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 36px;
  background: radial-gradient(ellipse at 15% 15%, #19303b 0, transparent 55%),
    radial-gradient(ellipse at 90% 100%, #24241b 0, transparent 50%), #0b121a;
  color: #f4f2e9;
  color-scheme: dark;
  font: 500 15px/1.6 "Segoe UI", Arial, sans-serif;
  -webkit-overflow-scrolling: touch;
}

.local-auth[hidden] {
  display: none;
}

.local-auth,
.local-auth * {
  box-sizing: border-box;
  touch-action: pan-y;
}

.local-auth-container {
  flex-shrink: 0;
  width: min(1120px, 100%);
  margin: auto;
  align-self: center;
}

.local-auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid #ffffff16;
  border-radius: 24px;
  background: #131e29;
  box-shadow: 0 32px 90px #0006;
}

.local-auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 38px;
  background: linear-gradient(
      180deg,
      #09141e24 15%,
      #09141e08 35%,
      #09141ee0 65%,
      #09141e 100%
    ),
    url("/source_20240722/image/bg/intro_bg.jpg") center / cover;
}

.local-auth-logo {
  flex-shrink: 0;
  display: block;
  width: 164px;
  height: auto;
  filter: drop-shadow(0 4px 10px #0007);
}

.local-auth-story {
  position: relative;
  margin-top: auto;
  padding-top: 100px;
}

.local-auth-eyebrow {
  display: block;
  color: #c5ad73;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.local-auth-story h2 {
  margin: 14px 0;
  font: 800 37px/1.25 "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.8px;
}

.local-auth-story h2 span {
  color: #eccb80;
}

.local-auth-story p {
  max-width: 330px;
  margin: 0;
  color: #b6c1c8;
  font-size: 14px;
  line-height: 1.7;
}

.local-auth-art-credit {
  margin-top: 28px;
  color: #82929c;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.local-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 52px;
  border-left: 1px solid #ffffff0d;
}

.local-auth-form[hidden] {
  display: none;
}

.local-auth-hint {
  margin: 7px 0 0;
  color: #9aabb7;
  font-size: 11px;
  line-height: 1.6;
}

.local-auth-heading {
  margin-bottom: 32px;
}

.local-auth-heading .local-auth-eyebrow::before {
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: #c5ad73;
  content: "";
}

.local-auth-heading h1 {
  margin: 13px 0 8px;
  color: #f7f5ee;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.local-auth-heading p {
  margin: 0;
  color: #9aabb7;
  font-size: 14px;
}

.local-auth-field + .local-auth-field {
  margin-top: 22px;
}

.local-auth-field label {
  display: block;
  margin-bottom: 9px;
  color: #e0e5e8;
  font-size: 13px;
  font-weight: 700;
}

.local-auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #34434f;
  border-radius: 10px;
  background: #0e1822;
  transition: border-color 150ms, box-shadow 150ms;
}

.local-auth-input:focus-within {
  border-color: #d2b36f;
  box-shadow: 0 0 0 3px #d2b36f17;
}

.local-auth svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.local-auth-input > svg {
  margin-left: 16px;
  color: #8194a3;
  pointer-events: none;
}

.local-auth-input input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  outline: none;
  background: transparent;
  color: #f4f2e9;
  font: inherit;
  font-size: 16px;
  -webkit-user-select: text;
  user-select: text;
}

.local-auth-input input::placeholder {
  color: #7e909e;
  font-size: 14px;
  font-weight: 600;
}

.local-auth-input input:autofill {
  -webkit-text-fill-color: #f4f2e9;
  box-shadow: 0 0 0 100px #0e1822 inset;
}

.local-auth :where(button) {
  flex-shrink: 0;
  font: inherit;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, opacity 150ms;
}

.local-auth button:focus-visible {
  outline: 2px solid #f0ce88;
  outline-offset: 4px;
}

.local-auth-password-toggle {
  align-self: stretch;
  min-width: 58px;
  padding: 0 14px;
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: #acbcc6;
  font-size: 12px;
}

.local-auth-password-toggle:hover {
  color: #f0ce88;
}

.local-auth-error {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid #e6a39435;
  border-radius: 8px;
  background: #e6a3940a;
  color: #ffbdad;
  font-size: 13px;
}

.local-auth-error:empty {
  display: none;
}

.local-auth-actions {
  margin-top: 28px;
}

.local-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid #efd59b;
  border-radius: 10px;
  background: #e4c17a;
  color: #282316;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 18px #d1a44f12;
}

.local-auth-submit:hover {
  background: #f0ce88;
}

.local-auth-submit svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.local-auth button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.local-auth-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: #9aabb7;
  font-size: 13px;
}

.local-auth-register button {
  min-height: 44px;
  padding: 8px 2px;
  background: transparent;
  color: #e4c17a;
  font-weight: 700;
}

.local-auth-register button:hover {
  color: #ffe2aa;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.local-auth-save-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid #ffffff0c;
  color: #8194a3;
  font-size: 11px;
  text-align: center;
}

.local-auth-save-note svg {
  width: 15px;
  height: 15px;
}

.local-auth-footer {
  margin: 22px 0 0;
  color: #81909c;
  font-size: 9px;
  letter-spacing: 2px;
  text-align: center;
}

.local-auth-footer span {
  margin: 0 12px;
  color: #a38b57;
}

@media (max-width: 1000px) {
  .local-auth-card {
    padding: 36px;
  }

  .local-auth-art {
    padding: 30px;
  }

  .local-auth-story h2 {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .local-auth {
    padding: 24px 18px;
  }

  .local-auth-container {
    width: min(440px, 100%);
  }

  .local-auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .local-auth-art {
    min-height: 162px;
    padding: 20px 26px;
    background-position: center 35%;
  }

  .local-auth-logo {
    width: 116px;
  }

  .local-auth[data-view="register"] .local-auth-art {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .local-auth[data-view="register"] .local-auth-logo {
    width: 104px;
  }

  .local-auth-story,
  .local-auth-art-credit {
    display: none;
  }

  .local-auth-card {
    padding: 30px 26px;
    border-top: 1px solid #ffffff0d;
    border-left: 0;
  }

  .local-auth-heading h1 {
    font-size: 26px;
  }

  .local-auth-heading {
    margin-bottom: 26px;
  }

  .local-auth-save-note {
    margin-top: 20px;
    padding-top: 20px;
  }

  .local-auth-footer {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
}

@media (max-width: 360px) {
  .local-auth {
    padding: 16px 12px;
  }

  .local-auth-card {
    padding: 26px 20px;
  }

  .local-auth-heading h1 {
    font-size: 24px;
  }

  .local-auth-eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-auth-input,
  .local-auth button {
    transition: none;
  }
}
