:root {
  color-scheme: light;
  --ink: #351b10;
  --muted: #846b5c;
  --orange: #ee4c13;
  --cream: #fffaf2;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #b66d28;
  outline-offset: 5px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.96fr) minmax(440px, 1fr);
  min-height: 100svh;
}
.brand-panel {
  padding: 38px clamp(36px, 4.4vw, 86px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff6e8;
  background:
    radial-gradient(ellipse at 100% 22%, #a45b1b77, transparent 60%),
    radial-gradient(ellipse at 25% 100%, #8b431c66, transparent 65%),
    linear-gradient(120deg, #251309, #653519);
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  align-self: flex-start;
}
.brand img {
  object-fit: contain;
  image-rendering: pixelated;
}
.brand strong {
  display: block;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}
.brand-content {
  padding: 44px 0 36px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.8px;
  color: #ebaa55;
  margin: 0 0 20px;
}
.brand-panel h1 {
  font-size: clamp(34px, 3.55vw, 66px);
  line-height: 1.36;
  letter-spacing: -1.5px;
  font-weight: 680;
  margin: 0 0 18px;
  white-space: nowrap;
}
.product-name {
  font-size: clamp(16px, 1.4vw, 24px);
  margin: 0 0 26px;
  color: #f5e7d9;
}
.product-scene {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 18px 55px #1d0b082b;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.feature-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 18px;
  border: 1px solid #f3c89938;
  border-radius: 13px;
  background: #fff7e70a;
  min-width: 0;
}
.feature-grid svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #efbc7b;
}
.feature-grid h2 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}
.feature-grid p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #dac7b5;
  white-space: nowrap;
}
.brand-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #efd4b52c;
  padding-top: 18px;
  font-size: 12px;
  color: #c9af98;
}
.access-panel {
  padding: 38px clamp(32px, 4vw, 72px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background: radial-gradient(ellipse at 10% 35%, #fffefa, var(--cream));
}
.top-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  font-size: 13px;
}
.top-links span {
  color: #c9b5a5;
}
.top-links a:hover,
.wecom-panel summary:hover {
  color: var(--orange);
}
.access-content {
  width: 100%;
  max-width: 430px;
  margin: 58px auto 42px;
}
.access-content .eyebrow {
  color: #b47c48;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.access-content h2 {
  font-size: clamp(26px, 2.1vw, 36px);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  font-weight: 650;
}
.subtitle {
  font-size: 18px;
  color: #79533d;
  margin: 0 0 42px;
}
form > label:not(.remember) {
  display: block;
  font-size: 14px;
  margin: 24px 0 12px;
}
.input-wrap {
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid #dfd3c7;
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input-wrap:focus-within {
  border-color: #bd793e;
  box-shadow: 0 0 0 3px #bd793e17;
}
.input-wrap > svg {
  width: 21px;
  height: 21px;
  color: #a4a2a9;
  margin-left: 17px;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 15px 12px;
  outline: 0;
  font-size: 15px;
  color: var(--ink);
}
.input-wrap input::placeholder {
  color: #a1a1a8;
}
.reveal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #96929b;
  border-radius: 8px;
}
.reveal:hover {
  background: #faf3e9;
}
.reveal svg {
  width: 20px;
  height: 20px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  margin: 22px 0 28px;
  cursor: pointer;
  width: fit-content;
}
.remember input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  margin: 0;
}
.submit {
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 17px;
  font-weight: 550;
  box-shadow: 0 3px 7px #b4551320;
  transition: background 0.15s;
}
.submit:hover {
  background: #cf3b0a;
}
.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.submit span:last-child {
  font-size: 26px;
  font-weight: 400;
}
.err {
  min-height: 24px;
  font-size: 13px;
  color: #b42318;
  padding-top: 10px;
  overflow-wrap: anywhere;
}
.wecom-panel {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 22px;
}
.wecom-panel summary {
  cursor: pointer;
  width: fit-content;
  padding: 5px 0;
}
.wecom-panel iframe {
  display: block;
  border: 0;
  width: 100%;
  max-width: 300px;
  height: 330px;
  margin: 12px auto;
}
.wecom-open {
  display: block;
  text-align: center;
  padding: 8px;
  color: #8d522d;
}
.wecom-unavailable {
  padding: 18px 0;
  color: var(--muted);
}
.contact {
  border-top: 1px solid #e8dbce;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.contact p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 9px;
}
.contact-title {
  font-size: 14px;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.contact-title span {
  margin-left: 9px;
}
.phone {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.phone:hover {
  text-decoration: underline;
}
.contact-qr {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.contact-qr img {
  display: block;
  border: 5px solid white;
  border-radius: 5px;
  background: white;
}
.contact-qr span {
  font-size: 11px;
}
.access-footer {
  font-size: 12px;
  color: #9a8b80;
  text-align: right;
}
dialog {
  border: 1px solid #e6d5c3;
  border-radius: 18px;
  background: var(--cream);
  padding: 32px;
  max-width: calc(100vw - 32px);
  color: var(--ink);
  box-shadow: 0 30px 100px #29190b40;
  text-align: center;
}
dialog::backdrop {
  background: #21140b77;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
dialog > img {
  display: block;
  width: min(240px, 60vw);
  height: auto;
}
dialog > a {
  display: block;
  margin-top: 20px;
  font-size: 20px;
}
.close-qr {
  position: absolute;
  right: 10px;
  top: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .access-content {
    margin: 65px auto;
  }
  .brand-content {
    padding: 60px 0;
  }
  .feature-grid article {
    padding: 25px 22px;
  }
  .feature-grid h2 {
    font-size: 20px;
  }
  .feature-grid p {
    font-size: 14px;
  }
}
@media (max-width: 1150px) {
  .login-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(370px, 1fr);
  }
  .brand-panel {
    padding: 30px;
  }
  .access-panel {
    padding: 30px;
  }
  .brand-panel h1 {
    font-size: 3.5vw;
    letter-spacing: -1px;
  }
  .brand strong {
    font-size: 30px;
  }
  .brand-content {
    padding: 40px 0;
  }
  .feature-grid {
    gap: 8px;
  }
  .feature-grid article {
    padding: 18px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-grid h2 {
    font-size: 16px;
  }
  .feature-grid p {
    font-size: 11px;
  }
  .brand-footer {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .access-content {
    margin: 50px auto 35px;
  }
}
@media (max-width: 760px) {
  .login-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .brand-panel {
    padding: 24px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand strong {
    font-size: 25px;
  }
  .brand small {
    font-size: 11px;
  }
  .brand-content {
    padding: 25px 0 4px;
  }
  .brand-content > .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .brand-panel h1 {
    font-size: clamp(24px, 6vw, 40px);
    white-space: normal;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }
  .product-name {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .product-scene {
    max-height: 240px;
  }
  .feature-grid {
    margin-top: 16px;
  }
  .feature-grid article {
    padding: 14px 10px;
    gap: 8px;
  }
  .feature-grid svg {
    width: 24px;
    height: 24px;
  }
  .feature-grid h2 {
    font-size: 14px;
    margin-bottom: 0;
  }
  .feature-grid p {
    display: none;
  }
  .brand-footer {
    display: none;
  }
  .access-panel {
    padding: 24px;
    flex: 1;
  }
  .top-links {
    font-size: 12px;
  }
  .access-content {
    max-width: 430px;
    margin: 35px auto;
  }
  .access-content h2 {
    font-size: 27px;
  }
  .subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .access-footer {
    text-align: center;
  }
  .contact {
    padding-top: 20px;
  }
  .phone {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .brand-content > .eyebrow,
  .product-scene,
  .feature-grid {
    display: none;
  }
  .brand-content {
    padding: 20px 0 0;
  }
  .brand-panel h1 {
    font-size: clamp(20px, 5.7vw, 24px);
    line-height: 1.45;
    letter-spacing: 0;
  }
  .product-name {
    margin: 0;
    font-size: 12px;
  }
}
.brand-panel {
  position: relative;
  isolation: isolate;
}
.brand-content {
  position: relative;
}
.brand-network {
  position: absolute;
  right: -20px;
  top: -80px;
  width: 40%;
  height: 250px;
  z-index: -1;
  color: #e4ac6b;
  opacity: 0.4;
  pointer-events: none;
}
.contact p {
  display: inline;
  font-size: 12px;
}
.contact-title {
  display: inline-block;
  font-size: 13px;
  margin: 0 0 0 8px;
}
.phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 26px;
}
.phone svg {
  width: 26px;
  height: 26px;
  color: #96532b;
  flex-shrink: 0;
}
.contact-qr {
  padding-left: 18px;
  border-left: 1px solid #e8dbce;
}
@media (max-width: 1150px) {
  .brand-network {
    display: none;
  }
  .phone {
    font-size: 23px;
  }
  .contact-title {
    margin-left: 0;
  }
  .contact-qr {
    padding-left: 10px;
  }
}
@media (max-width: 760px) {
  .phone {
    font-size: 22px;
  }
  .contact p {
    display: block;
    margin-bottom: 6px;
  }
  .contact-title {
    margin: 0;
  }
  .contact-qr {
    padding-left: 18px;
  }
}
