/* ===========================================================
   橙点 POS · 登录端
   =========================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  background: var(--bg);
}

/* ---------- 左侧视觉 ---------- */
.auth-visual {
  position: relative;
  overflow: hidden;
  background: #191411;
  color: #fff;
  padding: 40px clamp(28px, 4vw, 64px) 36px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.auth-visual::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -260px;
  top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 19, 0.55), rgba(255, 106, 19, 0.05) 55%, transparent 70%);
  z-index: -1;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  z-index: -1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-brand .brand-mark {
  box-shadow: 0 10px 24px -10px rgba(255, 106, 19, 0.9);
}

.auth-hero {
  margin: auto 0;
  padding: 32px 0;
  max-width: 460px;
}

.auth-hero h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 760;
}

.auth-hero h1 em {
  font-style: normal;
  color: var(--orange-2);
}

.auth-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 26em;
}

.auth-feats {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.auth-feat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.auth-feat .fi {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--orange-2);
}

.auth-feat .fi .ico {
  width: 16px;
  height: 16px;
}

/* 玻璃数据卡 */
.auth-glass {
  position: relative;
  margin-top: 26px;
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 340px;
}

.auth-glass small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.auth-glass b {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 2px;
}

.auth-glass b em {
  font-style: normal;
  font-size: 12px;
  color: #6ee7a0;
  margin-left: 8px;
  font-weight: 600;
}

.auth-glass svg {
  width: 100%;
  height: 42px;
  margin-top: 8px;
}

.auth-visual-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 28px;
}

.auth-visual-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-visual-foot .dot {
  opacity: 0.9;
}

/* ---------- 右侧表单 ---------- */
.auth-main {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 40px);
}

.auth-card {
  width: min(430px, 100%);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 22px;
}

.auth-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.auth-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f2eee8;
  border-radius: var(--r-pill);
  margin: 22px 0 20px;
}

.auth-tab {
  flex: 1;
  height: 38px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  transition: all 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.auth-tab .ico {
  width: 16px;
  height: 16px;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(20, 23, 26, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
}

.check input {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #d9d3ca;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0.6);
  opacity: 0;
  margin-top: -2px;
  transition: all 0.15s var(--ease);
}

.check input:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.check input:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.link-muted {
  font-size: 13px;
  color: var(--orange-deep);
  font-weight: 600;
}

.link-muted:hover {
  text-decoration: underline;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 10px;
}

.captcha {
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff6ec, #ffe7d6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange-deep);
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 46px;
  padding-bottom: 9px;
}

.captcha::after {
  content: "换一张";
  position: absolute;
  right: 7px;
  bottom: 2px;
  font-family: var(--font);
  font-size: 8.5px;
  letter-spacing: 0;
  line-height: 1;
  color: #c08a63;
  font-weight: 500;
}

.captcha span {
  display: inline-block;
  transform: rotate(-2deg);
  margin-left: 0.2em;
}

.auth-submit {
  height: 48px;
  margin-top: 8px;
  font-size: 15px;
}

.auth-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12.5px;
  border: 1px solid #f8d4d5;
}

.auth-error.show {
  display: flex;
}

.auth-error .ico {
  width: 15px;
  height: 15px;
  flex: none;
}

.demo-box {
  margin-top: 22px;
  border: 1px dashed #e3d9cd;
  border-radius: var(--r-md);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.6);
}

.demo-box h6 {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 550;
  transition: all 0.16s var(--ease);
}

.demo-chip:hover {
  border-color: var(--orange-200);
  background: var(--orange-50);
  color: var(--orange-deep);
}

.demo-chip .ico {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.auth-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
}

.auth-foot a {
  color: var(--ink-2);
  font-weight: 600;
}

.auth-foot a:hover {
  color: var(--orange-deep);
}

.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.pwd-toggle:hover {
  background: var(--orange-50);
  color: var(--orange-deep);
}

.pwd-toggle .ico {
  width: 17px;
  height: 17px;
}

#password {
  padding-right: 48px;
}

/* ---------- 响应式 ---------- */@media (max-width: 940px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-main {
    padding-top: 36px;
    align-items: start;
  }
  .auth-card {
    margin: 0 auto;
  }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .auth-head {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .captcha-row {
    grid-template-columns: 1fr 92px;
  }
  .auth-tabs {
    margin-top: 18px;
  }
}
