/* ============================================================
   login.css · 熵海沉浸式授权入口
   ============================================================ */

.login-body {
  width: 100%;
  max-width: none;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #111615;
  color: #f5f6f2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}

.login-scene,
.login-scene-image,
.login-scene-scrim {
  position: absolute;
  inset: 0;
}

.login-scene {
  z-index: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #202625;
}

.login-scene-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 44% center;
  filter: saturate(.76) brightness(.9) contrast(1.04);
}

.login-scene-scrim {
  background: rgba(8, 12, 12, .25);
}

.login-brand {
  position: absolute;
  top: 38px;
  left: clamp(26px, 4.25vw, 72px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fffefa;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.login-brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 2px;
  width: 12px;
  height: 12px;
}

.login-brand-mark i {
  display: block;
  width: 5px;
  height: 5px;
  background: #e4efe8;
}

.login-brand-mark i:nth-child(2) { opacity: .56; }
.login-brand-mark i:nth-child(3) { opacity: .32; }

.login-scene-copy {
  position: absolute;
  bottom: 44px;
  left: clamp(26px, 7.4vw, 132px);
  z-index: 1;
  width: min(510px, 42vw);
  color: #fffefa;
}

.login-scene-index {
  margin: 0 0 16px;
  color: rgba(240, 245, 240, .78);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .11em;
}

.login-scene-copy h1 {
  margin: 0;
  color: #fffefa;
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.login-scene-description {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(245, 247, 242, .82);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.login-scene-ledger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: rgba(245, 247, 242, .72);
  font-size: 12px;
  line-height: 1;
}

.login-scene-ledger i {
  width: 22px;
  height: 1px;
  background: rgba(245, 247, 242, .58);
}

.login-access {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: clamp(450px, 38vw, 570px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(38px, 7vh, 84px) clamp(42px, 5.5vw, 82px);
  border-left: 1px solid rgba(235, 242, 236, .16);
  background: rgba(14, 18, 17, .83);
  box-shadow: -24px 0 54px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
}

.login-access-inner {
  width: min(100%, 382px);
  margin: 0 auto;
  animation: login-enter 560ms cubic-bezier(.2, 0, 0, 1) both;
}

.login-access-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  color: #b8c4bb;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
}

.login-access-status span {
  width: 7px;
  height: 7px;
  background: #97c7aa;
  box-shadow: 0 0 0 4px rgba(151, 199, 170, .12);
}

.login-heading {
  margin-bottom: 37px;
}

.login-heading h2 {
  margin: 0;
  color: #fffefa;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.login-heading p {
  margin: 13px 0 0;
  color: #9ca9a0;
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.login-body .login-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-card label {
  margin-bottom: 22px;
  color: #d8ded8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.login-card label > span {
  display: block;
  margin-bottom: 9px;
}

.login-field {
  margin-bottom: 10px;
}

.login-card .login-field > label {
  display: block;
  margin-bottom: 9px;
}

.login-card .login-field > label > span {
  margin-bottom: 0;
}

.login-card input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid rgba(223, 231, 224, .25);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 250, .06);
  color: #fffefa;
  font-family: inherit;
  font-size: 14px;
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.login-card input::placeholder { color: #7e8b82; }

.login-card input:hover {
  border-color: rgba(223, 231, 224, .42);
  background: rgba(255, 255, 250, .08);
}

.login-card input:focus {
  border-color: #b9dbc4;
  background: rgba(255, 255, 250, .1);
  box-shadow: 0 0 0 3px rgba(185, 219, 196, .14);
}

.login-password-field {
  position: relative;
}

.login-card .login-password-field input {
  padding-right: 56px;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  place-items: center;
  background: transparent;
  color: #aebbb1;
  cursor: pointer;
  transform: translateY(-50%);
  transition-property: color, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.login-password-toggle:hover {
  background: rgba(255, 255, 250, .08);
  color: #eff5ef;
}

.login-password-toggle:focus-visible {
  outline: 2px solid #b9dbc4;
  outline-offset: 1px;
}

.login-password-toggle:active {
  transform: translateY(-50%) scale(.96);
}

.login-password-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition-property: opacity, transform, filter;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.login-password-icon-hide {
  opacity: 0;
  transform: scale(.25);
  filter: blur(4px);
}

.login-password-toggle[data-password-visible="true"] .login-password-icon-show {
  opacity: 0;
  transform: scale(.25);
  filter: blur(4px);
}

.login-password-toggle[data-password-visible="true"] .login-password-icon-hide {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.login-card .login-remember {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 13px;
  color: #b8c4bb;
  cursor: pointer;
  user-select: none;
}

.login-card .login-remember input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 10px 0 1px;
  padding: 0;
  accent-color: #b9dbc4;
  cursor: pointer;
}

.login-card .login-remember input:focus-visible {
  outline: 2px solid #b9dbc4;
  outline-offset: 3px;
  box-shadow: none;
}

.login-card .login-remember > span {
  margin: 0;
}

.login-body button.primary.wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  padding: 0 17px 0 18px;
  border: 1px solid #dce7dd;
  border-radius: 7px;
  background: #dce7dd;
  color: #152019;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.login-body button.primary.wide b {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms cubic-bezier(.2, 0, 0, 1);
}

.login-body button.primary.wide:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #101814;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .19);
  transform: translateY(-1px);
}

.login-body button.primary.wide:hover b { transform: translateX(3px); }
.login-body button.primary.wide:active { transform: scale(.96); }

.login-error {
  margin: 0 0 20px;
  padding: 11px 13px;
  border-left: 2px solid #ef9d9a;
  background: rgba(132, 43, 42, .22);
  color: #ffc7c4;
  font-size: 13px;
  line-height: 1.5;
}

.login-access-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(223, 231, 224, .16);
  color: #728077;
  font-size: 11px;
  line-height: 1.5;
}

@keyframes login-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .login-shell { display: flex; flex-direction: column; overflow: visible; }

  .login-scene {
    position: relative;
    min-height: 272px;
  }

  .login-scene-image,
  .login-scene-scrim { position: absolute; }
  .login-scene-image { object-position: 46% 57%; }
  .login-scene-scrim { background: rgba(8, 12, 12, .25); }

  .login-brand { top: 29px; left: 28px; }
  .login-scene-copy { bottom: 28px; left: 28px; width: calc(100% - 56px); }
  .login-scene-index { margin-bottom: 10px; }
  .login-scene-copy h1 { font-size: 38px; }
  .login-scene-description,
  .login-scene-ledger { display: none; }

  .login-access {
    position: relative;
    width: 100%;
    min-height: calc(100dvh - 272px);
    padding: 48px 32px 42px;
    border-top: 1px solid rgba(235, 242, 236, .14);
    border-left: 0;
    background: #111615;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .login-scene { min-height: 232px; }
  .login-brand { top: 25px; left: 23px; font-size: 21px; }
  .login-scene-copy { bottom: 25px; left: 23px; width: calc(100% - 46px); }
  .login-scene-copy h1 { font-size: 33px; }
  .login-access { min-height: calc(100dvh - 232px); padding: 38px 23px 34px; }
  .login-access-status { margin-bottom: 27px; }
  .login-heading { margin-bottom: 31px; }
  .login-heading h2 { font-size: 32px; }
  .login-access-footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-access-inner { animation: none; }
  .login-card input,
  .login-body button.primary.wide,
  .login-body button.primary.wide b,
  .login-password-toggle,
  .login-password-icon { transition: none; }
  .login-body button.primary.wide:hover,
  .login-body button.primary.wide:active { transform: none; }
  .login-body button.primary.wide:hover b { transform: none; }
}
