/* SalesBoost 認証画面 共有スタイル（login/signup/setup/onboarding）。
   承認済みデザイン（redesign-reference.html）と同じ明色トークン・システムフォント。
   Play CDN / Google Fonts / ダークテーマを撤去し、外部依存ゼロで自己完結する。 */
:root{
    --bg:#f5f7f9; --surface:#ffffff; --surface-2:#f8fafc;
    --t1:#0f172a; --t2:#475569; --t3:#64748b; --t4:#97a3b4;
    --accent:#2563eb; --accent-soft:#eef4ff; --accent-line:#dbe6ff;
    --ok:#16a34a; --ok-soft:#f0fdf4;
    --warn:#d97706; --warn-soft:#fffbeb;
    --danger:#dc2626;
    --border:#e7ebf0; --border-2:#dbe1e8;
    --r:14px; --r-sm:10px;
    --sh:0 4px 24px rgba(15,23,42,.06),0 1px 4px rgba(15,23,42,.04);
    --font:-apple-system,BlinkMacSystemFont,system-ui,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}
*{ box-sizing:border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html{ overflow-x:hidden; }
body{
    margin:0; background:var(--bg); color:var(--t1); font-family:var(--font);
    font-size:14px; line-height:1.5; min-height:100vh;
    display:flex; align-items:center; justify-content:center; position:relative; padding:24px 0;
}
body.top{ align-items:flex-start; padding:40px 0; }

/* 静かな背景（薄いグリッド + 上部のアクセントにじみ） */
body::before{ content:''; position:fixed; inset:0; pointer-events:none;
    background-image:linear-gradient(rgba(37,99,235,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(37,99,235,.035) 1px,transparent 1px);
    background-size:48px 48px; }
body::after{ content:''; position:fixed; top:-200px; left:50%; transform:translateX(-50%);
    width:600px; max-width:100vw; height:400px; pointer-events:none;
    background:radial-gradient(ellipse,rgba(37,99,235,.10) 0%,transparent 70%); }

.auth-shell{ position:relative; z-index:1; width:100%; padding:0 20px; }
.auth-head{ text-align:center; margin-bottom:28px; }
.auth-logo{ width:48px; height:48px; border-radius:14px; margin:0 auto 16px; display:flex;
    align-items:center; justify-content:center; color:#fff;
    background:linear-gradient(135deg,#2563eb,#1d4ed8); box-shadow:0 8px 24px rgba(37,99,235,.28); }
.auth-logo svg{ width:24px; height:24px; }
.auth-brand{ font-size:18px; font-weight:700; letter-spacing:-.02em; color:var(--t1); margin:0; }
.auth-eyebrow{ font-size:11px; font-weight:600; letter-spacing:.18em; color:var(--t3); margin:4px 0 0; }
.auth-h1{ font-size:22px; font-weight:700; letter-spacing:-.02em; color:var(--t1); margin:0; }
.auth-lead{ font-size:14px; color:var(--t3); margin:8px 0 0; line-height:1.6; }

.auth-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r); box-shadow:var(--sh); padding:28px; }
.auth-title{ font-size:16px; font-weight:600; letter-spacing:-.01em; color:var(--t1); margin:0 0 4px; }
.auth-sub{ font-size:12.5px; color:var(--t3); margin:0 0 22px; line-height:1.6; }

/* フォームの縦リズムは 18px で統一（欄↔欄・欄↔ボタンを同じ間隔にして対称に）。
   以前は :last-of-type で最終欄の下余白を 0 にしていたため、パスワード欄と送信
   ボタンの隙間だけ極端に詰まっていた（非対称）→ 撤去して均等リズムにする。 */
.auth-field{ margin-bottom:18px; }
.auth-label{ display:block; font-size:12.5px; font-weight:600; color:var(--t2); margin-bottom:7px; letter-spacing:-.01em; }
.auth-label .req{ color:var(--danger); font-weight:600; font-size:11px; margin-left:4px; }
.auth-input{ width:100%; background:var(--surface); border:1px solid var(--border-2); border-radius:var(--r-sm);
    padding:11px 14px; font-size:14px; color:var(--t1); outline:none; min-height:44px;
    font-family:var(--font); transition:border-color .15s ease,box-shadow .15s ease; }
.auth-input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.auth-input::placeholder{ color:var(--t4); }
textarea.auth-input{ min-height:120px; resize:vertical; line-height:1.6; }
.auth-hint{ font-size:12px; color:var(--t4); margin:6px 0 0; line-height:1.6; }

.auth-btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px;
    background:var(--accent); color:#fff; font-size:14px; font-weight:600; letter-spacing:-.01em;
    padding:11px 20px; border-radius:var(--r-sm); border:1px solid transparent; cursor:pointer;
    min-height:44px; font-family:var(--font); text-decoration:none; transition:background .15s ease,box-shadow .15s ease; }
.auth-btn:hover{ background:#1d4ed8; box-shadow:0 4px 16px rgba(37,99,235,.28); }
.auth-btn:active{ transform:translateY(.5px); }
.auth-btn:focus-visible{ outline:2px solid var(--accent-line); outline-offset:2px; }
.auth-btn-full{ width:100%; }
.auth-btn-ghost{ background:var(--surface); border-color:var(--border-2); color:var(--t2); }
.auth-btn-ghost:hover{ background:var(--surface-2); color:var(--t1); box-shadow:none; }

.auth-link{ color:var(--accent); text-decoration:none; font-weight:500; }
.auth-link:hover{ text-decoration:underline; text-underline-offset:2px; }
.auth-foot{ text-align:center; font-size:12px; color:var(--t4); margin-top:24px; }
.auth-alt{ text-align:center; font-size:13px; color:var(--t3); margin-top:22px; }

/* バナー / エラー */
.auth-error{ background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; padding:11px 14px; border-radius:var(--r-sm); font-size:13px; line-height:1.6; margin-bottom:20px; }
.auth-banner{ padding:12px 14px; border-radius:var(--r-sm); font-size:13.5px; line-height:1.6; margin-bottom:22px; }
.auth-banner-ok{ background:var(--ok-soft); border:1px solid #bbf7d0; color:#15803d; }
.auth-banner-warn{ background:var(--warn-soft); border:1px solid #fde68a; color:#92400e; }

/* レイアウト補助（このページ群が使う分のみ） */
.auth-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.auth-actions{ display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:8px; }
.auth-actions-split{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.auth-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:440px){ .auth-grid2{ grid-template-columns:1fr; } }

/* onboarding ステップ進捗 */
.steps{ display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:26px; flex-wrap:wrap; }
.step-dot{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--t4); }
.step-dot .num{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
    font-size:12px; font-weight:600; background:var(--surface-2); border:1px solid var(--border); color:var(--t3); }
.step-dot.active{ color:var(--t1); font-weight:600; }
.step-dot.active .num{ background:var(--accent); border-color:var(--accent); color:#fff; }
.step-dot.done{ color:var(--t2); }
.step-dot.done .num{ background:var(--ok); border-color:var(--ok); color:#fff; }

.pricing-box{ text-align:left; border-radius:12px; padding:16px; margin-bottom:24px; background:var(--surface-2); border:1px solid var(--border); }
.pricing-box .ptitle{ font-size:13px; font-weight:600; color:var(--t1); margin:0 0 8px; }
.pricing-box ol{ list-style:none; padding:0; margin:0; }
.pricing-box li{ font-size:12.5px; line-height:1.7; color:var(--t3); }
.pricing-box .free{ color:var(--ok); font-weight:600; }

@keyframes fadeUp{ from{opacity:0;transform:translateY(12px);} to{opacity:1;transform:translateY(0);} }
.fade-up{ animation:fadeUp .5s cubic-bezier(.16,1,.3,1) forwards; }
@media (prefers-reduced-motion:reduce){ .fade-up{ animation:none; } }
::selection{ background:rgba(37,99,235,.15); color:#1e3a5f; }
@media (display-mode:standalone){ body{ padding-top:env(safe-area-inset-top); } }
