/* ============================================================
   認証ページ（/login/, /signup/）
   ============================================================ */

.auth-main {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-section {
  width: 100%;
  max-width: 520px;
  padding: calc(var(--header-h) + 60px) 24px 120px;
}

.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 48px 44px 40px;
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--blue);
}

.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--blue-2);
  margin-bottom: 14px;
}

.auth-title {
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.auth-lead {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ---------- フォーム ---------- */

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color var(--t-fast);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--blue);
}

.auth-hint {
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 6px;
}

/* ---------- 同意チェック ---------- */

.auth-consents {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  margin: 24px 0 4px;
  display: grid;
  gap: 12px;
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.8;
  cursor: pointer;
}

.auth-check input {
  margin-top: 4px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.auth-check a {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- エラー ---------- */

.auth-error {
  background: rgba(220, 60, 60, .08);
  border: 1px solid rgba(220, 60, 60, .45);
  padding: 12px 14px;
  margin: 18px 0 0;
  display: grid;
  gap: 4px;
}

.auth-error p {
  font-size: 12px;
  color: #f08c8c;
  line-height: 1.7;
}

/* ---------- 送信ボタン ---------- */

.auth-submit {
  width: 100%;
  margin-top: 26px;
  background: var(--blue);
  color: var(--fg);
  border: none;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 16px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}

.auth-submit:hover {
  background: var(--blue-2);
  box-shadow: 0 0 24px var(--blue-glow);
}

.auth-submit:disabled,
.auth-submit.is-sending {
  opacity: .55;
  cursor: default;
  box-shadow: none;
}

/* ---------- 下部リンク ---------- */

.auth-links {
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  display: grid;
  gap: 10px;
}

.auth-sub-link {
  font-size: 12px;
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.auth-sub-link:hover {
  color: var(--fg);
}

.auth-switch {
  font-size: 12px;
  color: var(--fg-mute);
}

.auth-switch a {
  color: var(--blue-2);
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 600px) {
  .auth-section {
    padding: calc(var(--header-h) + 32px) 16px 80px;
  }

  .auth-card {
    padding: 36px 22px 32px;
  }
}
