/* 申し込み・メールの確認・パスワードの再設定など、ログインまわりの画面（layouts/auth） */

/* 申し込みのように項目が多い画面は、タブレットで広く使う */
.auth-card:has(.auth-wide) { max-width: 640px; }

.card.auth-flow { padding: 24px; }
.auth-flow h1 { font-size: 1.35rem; text-align: center; margin: 4px 0 8px; line-height: 1.4; }
.auth-flow .lead { text-align: center; color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.auth-flow .big-emoji { font-size: 3rem; text-align: center; line-height: 1.2; }
.auth-flow p { line-height: 1.8; }

/* 指で押しやすい大きさ（48px 以上） */
.auth-flow input[type=text], .auth-flow input[type=password], .auth-flow input[type=email],
.auth-flow input[type=number], .auth-flow select { min-height: 48px; }
.auth-flow .btn { min-height: 48px; }
.auth-flow .btn-primary.btn-block { min-height: 56px; font-size: 1.05rem; }
.auth-flow form.button_to { display: block; }
.auth-flow .field label { font-size: .95rem; }
.auth-flow .field .hint { font-size: .82rem; line-height: 1.6; margin-top: 4px; }

.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 12px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 700; }

/* 申し込みフォームの まとまり（1. 保護者 / 2. お子さま / 3. プラン / 4. 同意） */
.signup-section { display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.signup-section h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0; }
.signup-section h2 .num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; font-size: .95rem; font-weight: 800;
}
.signup-section .note { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* プランをえらぶ */
.plan-pick { display: grid; gap: 8px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 600px) { .plan-pick.two { grid-template-columns: repeat(2, 1fr); } }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label {
  display: grid; gap: 2px; align-content: center; min-height: 72px; padding: 12px 14px; cursor: pointer;
  border: 2px solid var(--border); border-radius: 14px; background: #fff; line-height: 1.5;
}
.plan-pick label b { font-size: 1rem; }
.plan-pick label .price { font-weight: 800; color: var(--primary-dark); }
.plan-pick label small { font-size: .8rem; }
.plan-pick input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.plan-pick input:focus-visible + label { outline: 3px solid var(--primary); }
.plan-box { border: 2px solid var(--primary); background: var(--primary-soft); border-radius: 14px; padding: 12px 14px; line-height: 1.6; }
.plan-box .price { font-weight: 800; color: var(--primary-dark); }

/* 同意のチェック */
.agree-list { display: grid; gap: 4px; }
.agree-list label { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; cursor: pointer; line-height: 1.5; }
.agree-list input[type=checkbox] { width: 26px; height: 26px; flex: none; accent-color: var(--primary); }
.agree-list a { text-decoration: underline; display: inline-block; padding: 12px 0; }

/* 確認のあとに出す「ログインに使うもの」 */
.login-facts { display: grid; gap: 8px; margin: 0; }
.login-facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
@media (min-width: 480px) { .login-facts > div { grid-template-columns: 11em 1fr; align-items: center; } }
.login-facts dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.login-facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; word-break: break-all; }
.login-facts dd code { font-size: 1.15rem; letter-spacing: .04em; }
.next-steps { display: grid; gap: 10px; }

/* パスワードの決まり・子ども向けの ひとこと */
.rule-box { background: var(--primary-soft); border-radius: 12px; padding: 10px 14px; font-size: .92rem; line-height: 1.7; }
.kid-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; font-size: .95rem; line-height: 1.8; }
