:root {
  color-scheme: light;
  --text: #2e3036;
  --muted: #777b84;
  --line: #e7e3dd;
  --lime: #b5e600;
  --olive: #8a9a24;
  --panel: #ffffff;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #f7f4f1;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: 56px;
  padding: 76px clamp(32px, 7vw, 132px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.72) 42%, rgba(247,244,241,0.9)),
    repeating-linear-gradient(90deg, rgba(178, 216, 0, 0.06) 0 6px, transparent 6px 16px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
  color: inherit;
  text-decoration: none;
}

.auth-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #1c1b22, #7965ff);
  box-shadow: 0 14px 28px rgba(46, 36, 92, 0.18);
}

.auth-brand strong {
  display: block;
  font-size: 28px;
}

.auth-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 900;
}

.auth-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
}

.auth-copy span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.device-preview {
  position: relative;
  height: 320px;
  margin-top: 72px;
}

.device-window {
  width: min(720px, 92%);
  height: 260px;
  display: grid;
  grid-template-columns: 88px 1fr;
  overflow: hidden;
  border: 10px solid #161616;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(34, 31, 28, 0.18);
}

.device-sidebar {
  background: linear-gradient(180deg, #f0f1e9, #fff);
  border-right: 1px solid #ece8df;
}

.device-content {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 36px;
}

.device-content span,
.device-content em {
  width: min(420px, 80%);
  height: 52px;
  border-radius: 10px;
  background: #f5f7e9;
  border: 1px solid #d2ef58;
}

.device-content strong {
  font-size: 20px;
}

.float-card {
  position: absolute;
  min-width: 170px;
  padding: 26px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(37, 34, 30, 0.14);
  font-weight: 800;
}

.float-card-a {
  left: 18px;
  top: -22px;
}

.float-card-b {
  right: 80px;
  bottom: 16px;
  background: #101012;
  color: #fff;
  transform: rotate(-12deg);
}

.auth-panel {
  display: flex;
  justify-content: center;
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 72px 30px 38px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(36, 33, 30, 0.12);
}

.qr-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 90px;
  height: 90px;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--lime) 50%),
    repeating-linear-gradient(90deg, #111 0 8px, transparent 8px 14px);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.9;
}

.auth-card-title {
  margin: 0 0 34px;
  font-size: 22px;
  font-weight: 800;
}

.auth-card label {
  display: block;
  margin-bottom: 18px;
}

.auth-card label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input:not([type]) {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #ddd8d1;
  border-radius: 7px;
  outline: none;
  font: inherit;
  background: #fff;
}

.auth-card input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(181, 230, 0, 0.18);
}

.auth-card button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 8px;
  color: #111;
  background: var(--lime);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.auth-card button:disabled {
  color: #999;
  background: #ececec;
  cursor: wait;
}

.agreement {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #444;
  font-size: 14px;
}

.agreement input {
  accent-color: var(--lime);
}

.agreement span {
  margin: 0 !important;
  color: #444 !important;
}

.auth-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--olive);
  font-weight: 700;
}

.auth-message.is-error {
  color: #d33a2c;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 36px 20px;
  }

  .device-preview {
    display: none;
  }

  .auth-brand {
    margin-bottom: 28px;
  }
}
