/* L1 · 剪纸开场 */
#modal-layer .auth-l1 {
  display: grid;
  grid-template-columns: 37% minmax(0, 1fr);
  width: min(732px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 21px;
  background: #fcf5e9;
  color: #392211;
  box-shadow: 0 12px 36px #47291140;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.auth-l1__art {
  position: relative;
  overflow: hidden;
  background: #ed791a;
}

.auth-l1__art svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-l1__art .auth-l1__art-mobile {
  display: none;
}

.auth-l1__panel {
  position: relative;
  min-width: 0;
  min-height: 784px;
  padding: 43px 32px 38px;
  background: linear-gradient(125deg, #fcf7ee, #fbf1e4);
}

[data-testid="modal-login"].auth-l1 .auth-l1__panel {
  padding: 108px 41px 54px;
}

.auth-l1 .modal-head {
  margin: 0 0 19px;
  padding: 0 32px 0 0;
}

.auth-l1 .modal-title {
  width: fit-content;
  margin: 0;
  color: #392211;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
}

[data-testid="modal-login"].auth-l1 .modal-title {
  font-size: 48px;
}

.auth-l1 .modal-title::after {
  display: block;
  width: 83%;
  height: 8px;
  margin: 5px auto 0;
  background: #f6b506;
  clip-path: polygon(0 69%, 11% 38%, 34% 12%, 63% 0, 90% 28%, 100% 68%, 98% 91%, 73% 77%, 40% 84%, 11% 100%);
  content: "";
}

#modal-layer .auth-l1 .modal-x {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #392211;
  box-shadow: none;
}

#modal-layer .auth-l1 .modal-x:hover {
  background: #e7d8c784;
}

.auth-l1 .modal-x svg {
  width: 25px;
  height: 25px;
}

.auth-l1__lead {
  margin: -9px 0 52px;
  font-size: 26px;
  line-height: 1.4;
}

.auth-l1 .field {
  min-width: 0;
  margin: 0 0 15px;
}

.auth-l1 .field > span,
.auth-l1 .field > label {
  display: block;
  margin: 0 0 6px;
  color: #392211;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-l1 .field input:not([type="hidden"]) {
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid #a69180;
  border-radius: 9px;
  background: #fcf7f0;
  color: #392211;
  font-size: 17px;
  line-height: 1.35;
}

.auth-l1 .field input::placeholder {
  color: #776b63;
}

.auth-l1 [data-auth-form="login"] .field {
  margin-bottom: 31px;
}

.auth-l1 [data-auth-form="login"] .field > span {
  font-size: 22px;
}

.auth-l1 [data-auth-form="login"] .field input {
  min-height: 54px;
  font-size: 22px;
}

.auth-l1__forgot {
  margin: -20px 0 39px;
  text-align: right;
}

.auth-l1 .link-like {
  display: inline-block;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #175528;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-l1__forgot .link-like,
.auth-l1 .modal-foot {
  font-size: 21px;
}

.auth-l1__verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-l1__captcha-row {
  grid-template-columns: minmax(0, 1fr) minmax(72px, 100px) auto;
}

.auth-l1__captcha-row img {
  width: 100%;
  height: 44px;
  border: 1px solid #cbb8a9;
  border-radius: 7px;
  background: #f3eadf;
  object-fit: contain;
}

.auth-l1__captcha-row .link-like {
  min-height: 44px;
  font-size: 16px;
  white-space: nowrap;
}

.auth-l1 [data-act="site-send-code"] {
  min-height: 44px;
  padding: 7px 16px;
  border: 1.5px solid #dc5508;
  border-radius: 9px;
  background: #fff8ec;
  color: #ad3b00;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.auth-l1 [data-site-message] {
  margin: 8px 0;
}

.auth-l1 [data-site-message]:empty {
  display: none;
}

#modal-layer .auth-l1 [data-act^="auth-submit-"] {
  width: 100%;
  min-height: 65px;
  margin: 21px 0 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 17px;
  background: #e75600;
  color: #fffdf7;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: none;
}

#modal-layer .auth-l1 [data-act="auth-submit-login"] {
  margin-top: 0;
}

#modal-layer .auth-l1 [data-act^="auth-submit-"]:hover:not(:disabled) {
  background: #cc4700;
}

.auth-l1 .modal-foot {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 22px;
}

.auth-l1 :is(button, input):focus-visible {
  outline: 2px solid #175528;
  outline-offset: 2px;
}

@media (max-width: 740px) {
  #modal-layer .auth-l1 {
    grid-template-columns: 33% minmax(0, 1fr);
  }

  .auth-l1__panel,
  [data-testid="modal-login"].auth-l1 .auth-l1__panel {
    min-height: 0;
    padding: 50px 25px 34px;
  }
}

@media (max-width: 580px) {
  #modal-layer .auth-l1 {
    display: block;
    max-height: calc(100dvh - 24px);
    border-radius: 17px;
  }

  .auth-l1__art {
    height: 104px;
  }

  .auth-l1__art .auth-l1__art-desktop {
    display: none;
  }

  .auth-l1__art .auth-l1__art-mobile {
    display: block;
  }

  .auth-l1__panel,
  [data-testid="modal-login"].auth-l1 .auth-l1__panel {
    padding: 21px 18px 24px;
  }

  #modal-layer .auth-l1 .modal-x {
    top: 9px;
    right: 8px;
  }

  .auth-l1 .modal-title,
  [data-testid="modal-login"].auth-l1 .modal-title {
    font-size: 30px;
  }

  .auth-l1 .modal-head {
    margin-bottom: 14px;
  }

  .auth-l1__lead {
    margin: -6px 0 20px;
    font-size: 17px;
  }

  .auth-l1 [data-auth-form="login"] .field,
  .auth-l1 .field {
    margin-bottom: 12px;
  }

  .auth-l1 .field > span,
  .auth-l1 .field > label,
  .auth-l1 [data-auth-form="login"] .field > span {
    font-size: 15px;
  }

  .auth-l1 .field input:not([type="hidden"]),
  .auth-l1 [data-auth-form="login"] .field input {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 16px;
  }

  .auth-l1__verification-row {
    gap: 6px;
  }

  .auth-l1__captcha-row {
    grid-template-columns: minmax(0, 1fr) 70px auto;
  }

  .auth-l1__captcha-row .link-like,
  .auth-l1 [data-act="site-send-code"] {
    font-size: 13px;
  }

  .auth-l1 [data-act="site-send-code"] {
    padding: 6px 8px;
  }

  .auth-l1__forgot {
    margin: -2px 0 18px;
  }

  .auth-l1__forgot .link-like,
  .auth-l1 .modal-foot {
    font-size: 15px;
  }

  .auth-l1 .modal-foot {
    margin-top: 13px;
  }

  #modal-layer .auth-l1 [data-act^="auth-submit-"] {
    min-height: 48px;
    margin-top: 8px;
    border-radius: 12px;
    font-size: 21px;
  }
}
