/* =======================
   Auth pages（ログイン／会員登録）
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP",
    sans-serif;
  color: #145087;
}

/* 背景の手前に出す */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* 共通レイアウト */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section-auth {
  margin-top: 32px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

/* カード本体 */

.auth-card {
  background: #ffffffee;
  border-radius: 24px;
  padding: 22px 18px 26px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 6px 14px rgba(13, 71, 125, 0.12);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-align: center;
  color: #145087;
}

.auth-lead {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
  color: #34536f;
}


.auth-note-small{
  margin: 18px 0 18px;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

.auth-link-small {
  font-size: 14px;
  display: inline-block;
}

/* フォーム */

.auth-form {
  margin-top: 4px;
}

.auth-field + .auth-field {
  margin-top: 14px;
}

.auth-label {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
  color: #34536f;
}

.auth-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #d0e3f8;
  font-size: 13px;
  outline: none;
  background: #f7fbff;
}

.auth-input:focus {
  border-color: #1c63d2;
  box-shadow: 0 0 0 1px rgba(28, 99, 210, 0.18);
}

/* ボタン */

.auth-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.auth-button--primary {
  margin-top: 18px;
  background: #1c63d2;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(12, 76, 150, 0.25);
}

.auth-button--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(12, 76, 150, 0.25);
}

/* 「または」区切り線 */

.auth-separator {
  display: flex;
  align-items: center;
  margin: 18px 0 14px;
  font-size: 11px;
  color: #6a7c93;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d0e3f8;
}

.auth-separator span {
  margin: 0 8px;
}

/* Google風ボタン（見た目だけ） */

.auth-button--google {
  background: #ffffff;
  border: 1px solid #dde3ea;
  box-shadow: 0 2px 6px rgba(13, 71, 125, 0.08);
}

.auth-google-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

/* 補助リンク・注意書き */

.auth-links {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.auth-links a {
  color: #1c63d2;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-note {
  margin-top: 12px;
  font-size: 10px;
  color: #6a7c93;
  line-height: 1.6;
  text-align: center;
}

/* メッセージ表示 */

.auth-message {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: center;
}

.auth-message--success {
  color: #0a7b3b;
}

.auth-message--error {
  color: #c24040;
}

.auth-message--info {
  color: #6a7c93;
}

/* =======================
   確認モーダル（signup 用）
   ======================= */


.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;              /* デフォルト非表示 */
  justify-content: center;
  align-items: center;
}

.auth-modal.is-open {
  display: flex;              /* JS で is-open を付けたら表示 */
}

/* うすい黒背景 */
.auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* ダイアログ本体 */
.auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 40px 18px;
  background: #fffdf8;
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 6px 20px rgba(13, 71, 125, 0.2);
  border: 1px solid #e2f1ff;
}

.auth-modal__title {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #145087;
  text-align: center;
}

.auth-modal__lead {
  margin: 0 0 12px;
  font-size: 12px;
  color: #44566b;
  line-height: 1.7;
  text-align: center;
}

.auth-modal__content {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #f1f4fb;
}

/* 確認用リスト */
.auth-modal__list {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
}

.auth-modal__row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}

.auth-modal__row + .auth-modal__row {
  border-top: 1px dotted #e2f1ff;
}

.auth-modal__row dt {
  width: 100px;
  flex-shrink: 0;
  font-weight: 600;
  color: #145087;
}

.auth-modal__row dd {
  margin: 0;
  color: #44566b;
  white-space: pre-wrap;
}

/* ボタンエリア */

.auth-modal__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.auth-modal__button {
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.auth-modal__button--back {
  background: #ffffff;
  color: #145087;
  border: 1px solid #c9d8f0;
}

.auth-modal__button--submit {
  background: #1c63d2;
  color: #ffffff;
}

.auth-modal__button--back:hover,
.auth-modal__button--submit:hover {
  opacity: 0.9;
}

.auth-modal__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #6a7c93;
  text-align: center;
}


/* signup-complete（メール送信済み画面）の注意文 */
.signup-complete__note {
  margin: 12px 0 18px;
  font-size: 11px;              /* 小さめに */
  line-height: 1.7;             /* 行間で読みやすく */
  color: #6a7c93;               /* 柔らかいグレー */
  text-align: left;             /* 左寄せで自然に */
  padding: 0 4px;
}

.signup-complete__note br.sp-only {
  display: none;
}

@media (max-width: 480px) {
  .signup-complete__note {
    font-size: 11.5px;          /* SP は少し大きめでもOK */
  }
}


/* PC向け調整 */

@media (min-width: 768px) {
  .section-auth {
    margin-top: 48px;
  }

  .auth-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 26px 24px 30px;
  }

  .auth-title {
    font-size: 19px;
  }

  .auth-modal__dialog {
    margin: 80px auto;
    padding: 20px 24px 22px;
    max-width: 540px;
  }
}
