
/* ════════════════════════════════════════════
   ログイン / 登録ページ — Soft Aurora × Frosted Glass
   ════════════════════════════════════════════ */

/* サイドパネルは使用しない */
.lx-login__brand,
.lx-login__deco { display: none !important; }

/* ── 背景：やわらかなオーロラグラデーション ── */
.lx-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,255,255,.5), transparent 70%),
    linear-gradient(155deg, #e9f0ff 0%, #f1eefc 46%, #e7f6f1 100%);
}

/* オーロラの光（ぼかしブロブ 2つ） */
.lx-login::before,
.lx-login::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}
.lx-login::before {
  width: 460px; height: 460px;
  top: -150px; right: -110px;
  background: radial-gradient(circle, rgba(96,165,250,.55), transparent 70%);
  animation: lx-float-a 14s ease-in-out infinite;
}
.lx-login::after {
  width: 420px; height: 420px;
  bottom: -140px; left: -110px;
  background: radial-gradient(circle, rgba(94,234,212,.5), transparent 70%);
  animation: lx-float-b 17s ease-in-out infinite;
}
@keyframes lx-float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-30px,24px) scale(1.08); }
}
@keyframes lx-float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(28px,-22px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-login::before, .lx-login::after, .lx-login__inner { animation: none !important; }
}

/* ── メインカード（フロストガラス） ── */
.lx-login__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 2.4rem 2rem 2.2rem;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.7),
    0 22px 55px -14px rgba(38,76,156,.30),
    0 8px 22px -10px rgba(38,76,156,.20);
  animation: lx-rise .55s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes lx-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ロゴ */
.lx-login__logo-wrap { text-align: center; }
.lx-login__logo { max-height: 54px; width: auto; margin: 0 auto; }
/* サイト名テキストはロゴ非設定時のフォールバックだが、
   「あなた専用の学習最適化×進捗管理 会員サイト制作」のような
   長いサイト名をフォームの上に表示させないため非表示にする。
   ロゴ画像を設定すれば自動的に表示される。 */
.lx-login__site-name { display: none; }

/* ── フォームカード（入れ子のカード装飾は無し。inner が唯一のカード） ── */
.lx-login__card {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.lx-login__title {
  font-size: 1.5rem; font-weight: 800;
  color: #1a2238; margin: 0 0 1.4rem; text-align: center;
  letter-spacing: .02em;
}

/* ── エラー ── */
.lx-login__error {
  background: rgba(255,240,240,.9);
  border: 1px solid #ffc5c5;
  border-left: 4px solid #e53935;
  border-radius: 10px;
  padding: .7rem .95rem;
  font-size: .88rem; color: #c62828;
  margin-bottom: 1.2rem;
}
/* 中身が空（初期状態・JS生成直後）は表示しない */
.lx-login__error:empty { display: none; }

/* ── フォームフィールド ── */
.lx-login__field { margin-bottom: 1.05rem; }
.lx-login__label {
  display: block; font-size: .82rem; font-weight: 700;
  color: #3a4256; margin-bottom: .4rem; letter-spacing: .02em;
}
.lx-login__input {
  display: block; width: 100%;
  padding: .82rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(120,135,170,.32);
  background: rgba(255,255,255,.85);
  color: #1a2238; font-size: .98rem;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
}
.lx-login__input::placeholder { color: #aab2c5; }
.lx-login__input:focus {
  outline: none;
  border-color: #2979ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(41,121,255,.14);
}

/* ── パスワード表示トグル ── */
.lx-login__pw-wrap { position: relative; }
.lx-login__pw-wrap .lx-login__input { padding-right: 3rem; }
.lx-login__pw-toggle {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.05rem;
  opacity: .55; padding: .25rem; line-height: 1;
}
.lx-login__pw-toggle:hover { opacity: .9; }

/* ── 横列: 保持 / 忘れた方 ── */
.lx-login__row {
  display: flex; align-items: center; justify-content: space-between;
  margin: .3rem 0 1.5rem; gap: .5rem; flex-wrap: wrap;
}
.lx-login__remember {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; color: #5a6276; cursor: pointer;
}
.lx-login__remember input { accent-color: #2979ff; width: 15px; height: 15px; cursor: pointer; }
.lx-login__forgot { font-size: .82rem; color: #2979ff; text-decoration: none; }
.lx-login__forgot:hover { text-decoration: underline; }

/* ── ログインボタン ── */
.lx-login__submit {
  display: block; width: 100%;
  padding: .92rem 1rem;
  border: none; border-radius: 13px;
  font-size: 1.02rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2979ff 0%, #1565c0 60%, #0d6efd 100%);
  box-shadow: 0 6px 18px rgba(21,101,192,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s, box-shadow .18s, filter .15s;
}
.lx-login__submit:hover {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(21,101,192,.48), inset 0 1px 0 rgba(255,255,255,.25);
}
.lx-login__submit:active { transform: translateY(0) scale(.99); }

/* ── 区切り ── */
.lx-login__register {
  width: 100%; text-align: center;
  border-top: 1px solid rgba(120,135,170,.22);
  padding-top: 1.3rem;
}
.lx-login__register-label {
  font-size: .8rem; color: #8a93a8; margin: 0 0 .8rem; letter-spacing: .05em;
}
.lx-login__register-btns { display: flex; flex-direction: column; gap: .7rem; }
.lx-login__reg-btn {
  display: block; padding: .82rem 1rem;
  border-radius: 13px;
  font-size: .95rem; font-weight: 700; text-align: center; text-decoration: none;
  transition: transform .12s, box-shadow .18s, filter .15s, background .15s;
}
.lx-login__reg-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.lx-login__reg-btn:active { transform: scale(.99); }

/* 無料登録 — グリーン */
.lx-login__reg-btn--free {
  color: #fff;
  background: linear-gradient(135deg, #26a69a, #2e7d32);
  box-shadow: 0 6px 16px rgba(46,125,50,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.lx-login__reg-btn--free:hover { box-shadow: 0 9px 22px rgba(46,125,50,.4), inset 0 1px 0 rgba(255,255,255,.25); }

/* 有料登録 — ゴールド */
.lx-login__reg-btn--paid {
  color: #3d2700;
  background: linear-gradient(135deg, #ffd740, #f9a825);
  box-shadow: 0 6px 16px rgba(249,168,37,.4), inset 0 1px 0 rgba(255,255,255,.35);
}
.lx-login__reg-btn--paid:hover { box-shadow: 0 9px 22px rgba(249,168,37,.48), inset 0 1px 0 rgba(255,255,255,.35); }

/* ── PC: カードを少し広げる ── */
@media (min-width: 800px) {
  .lx-login__inner { max-width: 460px; padding: 2.8rem 2.6rem 2.5rem; }
  .lx-login__title { font-size: 1.65rem; }
}

/* ── スマホ ── */
@media (max-width: 480px) {
  .lx-login { padding: 2rem 1rem 2.5rem; align-items: flex-start; }
  .lx-login__inner { padding: 1.9rem 1.4rem 1.8rem; border-radius: 20px; }
  .lx-login__title { font-size: 1.35rem; }
  .lx-login__reg-btn { font-size: .9rem; padding: .78rem 1rem; }
}


/* ── 登録ページ追加スタイル ── */
.lx-login__submit--green {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  box-shadow: 0 4px 0 #1b5e20, 0 6px 16px rgba(46,125,50,.35);
}
.lx-login__submit--green:hover {
  box-shadow: 0 6px 0 #1b5e20, 0 9px 22px rgba(46,125,50,.42);
}

/* ログインへ戻るボタン */
.lx-login__reg-btn--login {
  color: #1976d2;
  background: #fff;
  border: 1.5px solid #1976d2;
  box-shadow: none;
  font-weight: 600;
}
.lx-login__reg-btn--login:hover { background: #e3f2fd; }

/* ── メール認証コード入力 ── */
.lx-login__input--code {
  font-size: 1.8rem !important;
  font-weight: 900;
  letter-spacing: .55em;
  text-align: center;
  padding-left: .5rem !important;
}
.lx-login__step-desc {
  font-size: .9rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.4rem;
  text-align: center;
}
.lx-login__step-note {
  font-size: .8rem;
  color: #999;
  text-align: center;
  margin-top: .9rem;
}
.lx-login__step-notice {
  font-size: .82rem;
  color: #7a6500;
  background: #fffbea;
  border: 1px solid #f0d060;
  border-radius: 8px;
  padding: .6rem .9rem;
  text-align: center;
  margin: -.6rem 0 1.1rem;
  line-height: 1.6;
}
.lx-login__hint {
  font-size: .76rem;
  color: #999;
  margin-top: .25rem;
  display: block;
}

/* ── 利用規約同意文（登録ページ） ── */
.lx-login__terms-note {
  font-size: .78rem; line-height: 1.65; color: #7a8299;
  text-align: center; margin: 1rem 0 0; padding-top: .9rem;
  border-top: 1px solid rgba(120,135,170,.2);
}
.lx-login__terms-note small { color: #9aa0b0; }
.lx-login__terms-link {
  color: #2979ff; text-decoration: underline; text-underline-offset: 2px;
}

/* ── 利用規約 / プライバシーポリシー ページ ── */
.learning-legal__title {
  font-size: 1.8rem; font-weight: 900;
  margin: 0 0 2rem; padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent, #c44d2c);
}
.learning-legal__body h2 {
  font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .6rem;
  color: var(--color-ink, #1a1a1a);
  border-left: 4px solid var(--color-accent, #c44d2c);
  padding-left: .75rem;
}
.learning-legal__body p,
.learning-legal__body li { line-height: 1.85; color: #333; }
.learning-legal__body ul { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.learning-legal__body li { margin-bottom: .3rem; }
.learning-legal__back {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, #e0e0e0);
}
.learning-legal__back a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 10px;
  background: #f3f4f8;
  border: 1.5px solid #d0d4e0;
  color: #3a4256;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background .14s, border-color .14s, transform .1s;
}
.learning-legal__back a:hover {
  background: #e8ecf7;
  border-color: #2979ff;
  color: #2979ff;
  transform: translateX(-2px);
}
