:root {
  --auth-orange: #f08a2c;
  --auth-orange-2: #ef6c00;
  --auth-orange-deep: #e65100;
  --auth-text: #1f2329;
  --auth-muted: #8a9199;
  --auth-line: #eceff3;
  --auth-input: #f3f5f7;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--auth-text);
  background: #fff;
}
a { color: var(--auth-orange-2); text-decoration: none; }

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.auth-hero {
  position: relative;
  height: 236px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.28), transparent 40%),
    linear-gradient(160deg, #ffb347 0%, #f08a2c 42%, #ef6c00 100%);
  overflow: hidden;
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 58%, rgba(255,255,255,.08) 58% 62%, transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.08) 28px 29px);
  opacity: .35;
  pointer-events: none;
}
.auth-hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.auth-hero-art svg {
  width: min(280px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(180, 70, 0, .2));
}

.auth-card {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding: 0 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.auth-logo {
  width: 130px;
  height: auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 39, 75, .08);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
}
.auth-title em {
  font-style: normal;
  color: var(--auth-orange-2);
}

.auth-flash {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.auth-flash.success { background: #eaf8f0; color: #0f7b4a; }
.auth-flash.error { background: #fef3f2; color: #b42318; }

.auth-form { display: grid; gap: 14px; }
.auth-input {
  width: 100%;
  border: 0;
  outline: none;
  background: var(--auth-input);
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 15px;
}
.auth-input::placeholder { color: #a0a7b0; }
.pwd-wrap { position: relative; }
.pwd-wrap .auth-input { padding-right: 46px; }
.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9aa3ad;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  line-height: 1;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--auth-muted);
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-orange-2);
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff9f43, #ef6c00);
  box-shadow: 0 10px 18px rgba(239, 108, 0, .28);
}
.auth-btn:active { transform: translateY(1px); }

.auth-links {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-muted);
}

.auth-footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.5;
}
.auth-footer a { color: var(--auth-orange-2); }
.auth-ver { white-space: nowrap; color: #b0b7bf; }

@media (min-width: 760px) {
  .auth-page {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #f0f2f5;
  }
}
