:root {
  --auth-ink: #102a2a;
  --auth-muted: #4f6b68;
  --auth-teal: #0f766e;
  --auth-teal-deep: #115e59;
  --auth-line: rgba(15, 118, 110, .16);
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--auth-ink);
  background: #eef6f4;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  background: #0f2928;
}
.auth-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.auth-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 8s ease;
}
.auth-slide.is-on {
  opacity: 1;
  transform: scale(1.1);
  z-index: 1;
}
.auth-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,28,28,.35) 0%, rgba(8,28,28,.55) 45%, rgba(8,28,28,.82) 100%),
    linear-gradient(90deg, rgba(8,28,28,.2), transparent 50%);
  pointer-events: none;
}
.auth-visual-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: clamp(28px, 5vw, 48px);
  color: #f5fffc;
}
.auth-visual-brand {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 12px;
  text-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.auth-visual-caption {
  margin: 0 0 18px;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245,255,252,.88);
  min-height: 3.2em;
  transition: opacity .35s ease;
}
.auth-dots {
  display: flex;
  gap: 8px;
}
.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.auth-dot.is-on {
  width: 22px;
  background: #fff;
}

.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 20px;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(15,118,110,.12), transparent 60%),
    linear-gradient(180deg, #f7fbfa 0%, #eef6f4 100%);
}
.auth-home-link {
  align-self: flex-start;
  margin: -8px 0 8px;
  color: var(--auth-muted);
  font-size: 13px;
  text-decoration: none;
}
.auth-home-link:hover { color: var(--auth-teal-deep); }

.auth-page {
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  gap: 16px !important;
  width: 100%;
}
.auth-box {
  width: min(420px, 100%) !important;
  background: #fff !important;
  padding: 36px 32px !important;
  border-radius: 18px !important;
  border: 1px solid var(--auth-line);
  box-shadow: 0 24px 60px rgba(16, 42, 42, .10) !important;
}
.auth-box h1 {
  font-size: 24px !important;
  text-align: center;
  margin-bottom: 6px;
  color: var(--auth-teal-deep) !important;
  letter-spacing: .04em;
}
.auth-box .sub {
  text-align: center;
  color: var(--auth-muted) !important;
  margin-bottom: 24px;
}
.auth-box .form-item { margin-bottom: 16px; }
.auth-box label { display: block; margin-bottom: 6px; color: #555; }
.auth-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 14px;
}
.auth-box input:focus {
  border-color: var(--auth-teal) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,118,110,.14);
}
.auth-box .btn-primary {
  background: linear-gradient(135deg, var(--auth-teal), var(--auth-teal-deep)) !important;
  border: none;
  border-radius: 10px !important;
  min-height: 42px;
}
.auth-box .btn-block { width: 100%; }
.auth-box .switch { text-align: center; margin-top: 16px; color: #666; }
.auth-box .switch a { color: var(--auth-teal-deep); }

.auth-filing {
  color: var(--auth-muted) !important;
  font-size: 12px;
  text-align: center;
  padding: 0 8px 8px !important;
}
.auth-filing a { color: var(--auth-muted) !important; }
.auth-filing a:hover { color: var(--auth-teal-deep) !important; }
.auth-filing-sep { margin: 0 8px; opacity: .7; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: 220px;
    max-height: 280px;
  }
  .auth-visual-copy { padding: 20px; }
  .auth-visual-brand { font-size: 24px; }
  .auth-visual-caption { font-size: 13px; min-height: 0; margin-bottom: 12px; }
  .auth-main { padding-top: 20px; }
  .auth-home-link { align-self: center; }
}
