/* Auth pages (Sign in / Sign up / Forgot password) */
:root {
  --auth-ink: #111827;
  --auth-muted: #6b7280;
  --auth-line: rgba(17, 24, 39, 0.08);
  --auth-blue: #0b63f3;
  --auth-bg: #ffffff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--auth-ink);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
}

.auth__left {
  position: relative;
  padding: 44px;
  background-image: url("/public/hero/hero-sky.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 22px;
  margin: 28px 0 28px 28px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .auth__left { display: none; }
}
.auth__left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.auth-quote {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  top: 28%;
}
.auth-quote__text {
  margin: 0 0 18px;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.6;
}
.auth-quote__who {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
}
.auth-quote__loc {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* 勿用 place-items: center 垂直居中整块卡片：内容高于视口时顶部（含 .auth-alert）会溢出屏幕外，看起来像没报错 */
.auth__right {
  display: grid;
  justify-items: center;
  align-items: start;
  align-content: start;
  padding: clamp(28px, 5vh, 48px) 18px 40px;
}

.auth-card {
  width: min(420px, 100%);
  text-align: center;
}

.auth-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.auth-mark svg { width: 40px; height: 40px; display: block; }

.auth-title {
  margin: 0 0 22px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b0b0c;
}

.auth-social {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-social__btn {
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--auth-line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: #111827;
}
.auth-social__btn--apple .ic { color: #000; }
.auth-social__btn .ic { width: 20px; height: 20px; display: grid; place-items: center; }
.auth-social__btn img { width: 18px; height: 18px; display: block; }

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 16px 0 18px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 24, 39, 0.08);
}

.auth-form { display: grid; gap: 14px; }
.auth-field {
  height: 58px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: #ffffff;
}
.auth-field input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field__end {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #9ca3af;
}
.auth-field__end svg { width: 20px; height: 20px; display: block; }

.auth-field--split { justify-content: space-between; gap: 12px; }
.auth-send {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--auth-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}

.auth-primary {
  margin-top: 6px;
  height: 64px;
  border-radius: 16px;
  border: 0;
  background: var(--auth-blue);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-links {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  color: #6b7280;
  font-size: 1rem;
}
.auth-links a { color: #6b7280; }
.auth-links a:hover { color: var(--auth-blue); }

.auth-alert {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}
.auth-alert--ok {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.22);
}

/* 表单内错误：提交按钮上方，与输入框风格统一 */
.auth-inline-msg {
  margin: 0 0 14px;
  padding: 0;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}
.auth-inline-msg--err {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(165deg, #fff8f8 0%, #fff1f2 100%);
  color: #9f1239;
  border: 1px solid rgba(251, 113, 133, 0.42);
  border-radius: 16px;
  font-weight: 500;
  box-shadow:
    0 1px 2px rgba(190, 18, 60, 0.04),
    0 6px 20px rgba(190, 18, 60, 0.06);
}
.auth-inline-msg--err::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.2);
}
.auth-inline-msg--err .auth-inline-msg__text {
  flex: 1;
  min-width: 0;
}

/* footer (shared across auth pages) */
.auth-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  text-align: center;
  color: rgba(17, 24, 39, 0.38);
  font-size: 0.6875rem;
  line-height: 1.5;
}
.auth-footer__line {
  margin: 0;
}
.auth-footer__company {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(17, 24, 39, 0.42);
}
.auth-footer__email {
  display: inline-block;
  margin-top: 8px;
  color: rgba(17, 24, 39, 0.38);
  text-decoration: none;
}
.auth-footer__email:hover {
  color: rgba(17, 24, 39, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

