/**
 * auth.css — ログイン / 新規登録ページ共通スタイル
 *
 * 読み込み順:
 *   common.css → style.css → auth.css
 *
 * style.css が :root トークン・body を提供する。
 */

body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.auth-page .container {
  width: 100%;
  max-width: 400px;
  padding: 0;
}

.auth-page .hero {
  text-align: center;
  margin-bottom: 28px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.auth-page .hero-icon {
  margin: 0 auto 10px;
  display: block;
}

.auth-page .hero-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-page .hero-sub {
  font-size: 13px;
  color: var(--muted);
}

.auth-page .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 14px;
}

.auth-page .field {
  margin-bottom: 16px;
}

.auth-page .field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-page .field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s;
  outline: none;
}

.auth-page .field input:focus {
  border-color: var(--gold);
}

.auth-page .field input.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.auth-page .field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.auth-page .message {
  display: none;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid var(--border-2);
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.auth-page .message.show    { display: block; }
.auth-page .message.error   { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.auth-page .message.success { border-color: rgba(34, 197, 94, 0.4); color: #86efac; }

.auth-page .btn-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-page .footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.auth-page .footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.auth-page .footer-links a:hover {
  color: var(--text);
}

.auth-page .footer-links a.highlight {
  color: var(--gold-bright);
  font-weight: 700;
}
