/* ============================================================================
   ログイン / 新規登録 共通 (V27 ダークネイビー版)
   使用テンプレート: auth/login.html / auth/signup.html
   構図 (左コピー + 右グラスカード) は従来の L4 を維持し、 カラートークン・
   フォント・背景を V27 (他全ページ) に統一。 寸法は rem (等倍スケール対応)。
   ============================================================================ */
body.lgn27-body {
  background:
    radial-gradient(100rem 43.75rem at 85% -8%, rgba(201,168,92,0.08), transparent 65%),
    radial-gradient(81.25rem 37.5rem at 0% 100%, rgba(58,103,166,0.18), transparent 60%),
    #1B2E4B;
}
.app-scroll-area.lgn-scroll { padding: 0; display: flex; flex-direction: column; }
.app-scroll-area.lgn-scroll > .app-content-wrap { flex: 1 1 auto; display: flex; flex-direction: column; }

.lgn {
  --line: rgba(255,255,255,0.11); --line-strong: rgba(255,255,255,0.2);
  --gold: #C9A85C; --gold-bright: #E8CE8C; --gold-line: rgba(201,168,92,0.45); --gold-dim: rgba(201,168,92,0.14);
  --text: #F2F5F9; --sub: #8FA0B5; --navy: #1B2E4B;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --num: "Manrope", "Zen Kaku Gothic New", sans-serif;
  flex: 1 1 auto;
  position: relative; display: flex; align-items: center; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  min-height: clamp(40.625rem, 96vh, 61.25rem);
  padding: 3rem clamp(1.125rem, 6vw, 6.875rem);
  font-family: var(--sans); color: var(--text);
}
/* 背景は他 V27 ページと同じ: #1B2E4B + 金/青の radial アクセント 2 灯 */
.lgn-bg { position: absolute; inset: 0;
  background:
    radial-gradient(100rem 43.75rem at 85% -8%, rgba(201,168,92,0.08), transparent 65%),
    radial-gradient(81.25rem 37.5rem at 0% 100%, rgba(58,103,166,0.18), transparent 60%),
    var(--navy); }
.lgn-bg::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40rem 23.75rem at 14% 14%, rgba(201,168,92,.12), transparent 62%); }
.lgn-inner { position: relative; display: grid; grid-template-columns: 1fr 27.5rem; gap: 4.5rem;
  align-items: center; max-width: 101.25rem; margin: 0 auto; width: 100%; }

/* 左: コピー */
.lgn-eyebrow { font-family: var(--num); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
/* キャッチコピーは TOP のブランドタイトルと同じセリフ体 */
.lgn-tagline { font-family: var(--serif); font-weight: 700; letter-spacing: 0.08em; line-height: 1.35;
  color: var(--text); font-size: clamp(2rem, 4vw, 3.4rem); margin: 1.125rem 0 0; }
.lgn-tagline .g { color: var(--gold-bright); }
.lgn-desc { color: rgba(242,245,249,.72); font-size: 1.02rem; line-height: 1.85; margin-top: 1.25rem; max-width: 32.5rem; }
.lgn-benefits { display: flex; flex-direction: column; gap: 1.125rem; margin-top: 2.125rem; max-width: 32.5rem; }
.lgn-benefit { display: flex; gap: 0.875rem; align-items: flex-start; }
.lgn-benefit .ic { flex: 0 0 auto; width: 2.625rem; height: 2.625rem; border-radius: 0.6875rem;
  background: var(--gold-dim); border: 0.0625rem solid var(--gold-line); display: flex;
  align-items: center; justify-content: center; color: var(--gold-bright);
  font-family: var(--sans); font-weight: 900; }
.lgn-benefit h5 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 800; color: var(--text); }
.lgn-benefit p { margin: 0; font-size: .84rem; color: rgba(242,245,249,.68); line-height: 1.6; }

/* 右: グラスカード */
.lgn-glass { background: rgba(255,255,255,.07); border: 0.0625rem solid var(--line-strong);
  border-radius: 1.25rem; padding: 2.5rem 2.625rem;
  -webkit-backdrop-filter: blur(1.125rem); backdrop-filter: blur(1.125rem);
  box-shadow: 0 1.5rem 4.375rem rgba(0,0,0,.4); }
.lgn-title { font-family: var(--sans); font-weight: 900; color: var(--text); font-size: 1.7rem; margin: 0; }
.lgn-csub { color: rgba(242,245,249,.6); font-size: .9rem; margin: 0.375rem 0 1.5rem; }

.lgn-field { margin-bottom: 1rem; }
.lgn-field label { display: block; font-size: .84rem; font-weight: 700; color: rgba(242,245,249,.85); margin-bottom: 0.5rem; }
.lgn-iw { position: relative; }
.lgn-iw .ic { position: absolute; left: 0.9375rem; top: 50%; transform: translateY(-50%);
  color: #7a869a; width: 1.1875rem; height: 1.1875rem; pointer-events: none; z-index: 1; }
/* 入力欄は「即時に使えるシステムフォント」で固定。 Google Fonts の非同期読み込みスワップや、
   password⇄text・オートフィルの状態変化で字形/サイズが揺れるのを防ぐ。 */
.lgn-input { width: 100%; height: 3.25rem; border: 0.0938rem solid rgba(255,255,255,.35); border-radius: 0.625rem;
  padding: 0 1rem 0 2.875rem; font-size: 1rem; line-height: 1.25; box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Meiryo", sans-serif;
  background: rgba(255,255,255,.95); color: #16243B; transition: border-color .15s, box-shadow .15s; }
.lgn-input.pw { padding-right: 4rem; }
.lgn-input::placeholder { color: #9aa3b0; }
.lgn-input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 0.25rem rgba(201,168,92,.28); }
/* オートフィルも 白背景＋ネイビー文字・同じフォント/サイズ に固定（状態変化での揺れ防止） */
.lgn-input:-webkit-autofill, .lgn-input:-webkit-autofill:hover, .lgn-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #16243B; -webkit-box-shadow: 0 0 0 62.5rem #fff inset; caret-color: #16243B;
  font-size: 1rem !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Meiryo", sans-serif !important; }
.lgn-toggle { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: .78rem; font-weight: 700; cursor: pointer; user-select: none;
  background: none; border: 0; padding: 0.25rem 0.375rem; z-index: 1; font-family: inherit; }
.lgn-toggle:hover { color: #16243B; }

/* ボタン (ゴールドは他ページの solid と同グラデ: bright → gold) */
.lgn-btn { width: 100%; height: 3.375rem; border: none; border-radius: 0.625rem;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 800; cursor: pointer;
  transition: transform .12s, box-shadow .18s, filter .18s; display: flex; align-items: center;
  justify-content: center; gap: 0.5625rem; text-decoration: none; box-sizing: border-box; }
.lgn-btn.gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #16243B;
  box-shadow: 0 0.625rem 1.625rem rgba(201,168,92,.3); margin-top: 0.375rem; }
.lgn-btn.gold:hover { transform: translateY(-0.125rem); filter: brightness(1.05); }
.lgn-btn.ghost { background: transparent; color: var(--text); border: 0.0938rem solid rgba(255,255,255,.45); }
.lgn-btn.ghost:hover { border-color: var(--gold-line); color: var(--gold-bright); transform: translateY(-0.125rem); }
.lgn-btn.sm { height: 2.875rem; font-size: .95rem; }
.lgn-forgot { display: block; text-align: center; font-size: .88rem; font-weight: 600; color: var(--gold-bright);
  margin: 1rem 0; text-decoration: underline; text-underline-offset: 0.1875rem; }
.lgn-forgot:hover { color: #fff; }
.lgn-divider { display: flex; align-items: center; gap: 0.875rem; color: rgba(242,245,249,.5); font-size: .8rem; margin: 1.25rem 0 1rem; }
.lgn-divider::before, .lgn-divider::after { content: ""; flex: 1; height: 0.0625rem; background: var(--line-strong); }
.lgn-error { color: #ffd9d2; background: rgba(255,107,126,.16); border: 0.0625rem solid rgba(255,107,126,.45);
  padding: 0.625rem 0.8125rem; border-radius: 0.5625rem; font-size: .88rem; margin-bottom: 1rem; line-height: 1.6; }
.lgn-resend { margin: 0 0 1rem; }
.lgn-note { color: rgba(242,245,249,.5); font-size: .76rem; line-height: 1.7; margin-top: 0.875rem; }
.lgn-consent { color: rgba(242,245,249,.65); font-size: .78rem; line-height: 1.7; margin: 0.125rem 0 0.75rem; }
.lgn-consent a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 0.125rem; }
.lgn-consent a:hover { color: #fff; }

@media (max-width: 900px) {
  .lgn-inner { grid-template-columns: 1fr; gap: 1.75rem; max-width: 28.75rem; }
  .lgn-copy { text-align: center; }
  .lgn-desc { margin-left: auto; margin-right: auto; }
  .lgn-benefits { display: none; }
}
@media (max-width: 560px) {
  .lgn { padding: 1.875rem 1rem; min-height: 0; }
  .lgn-glass { padding: 1.875rem 1.375rem; }
}
