* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
:root {
  --brand: #06c755;
  --brand-dark: #059e44;
  --brand-light: #e8faf0;
  --blue: #1e6fd9;
  --blue-light: #ebf3ff;
  --navy: #0b1d35;
  --text: #0f2137;
  --sub: #5a6f84;
  --border: #d8e5ef;
  --bg: #f4f8fc;
  --white: #ffffff;
  --danger: #e53e3e;
  --shadow-sm: 0 1px 3px rgba(11, 29, 53, 0.08), 0 1px 2px rgba(11, 29, 53, 0.05);
  --shadow-md: 0 4px 16px rgba(11, 29, 53, 0.1), 0 2px 6px rgba(11, 29, 53, 0.06);
  --shadow-lg: 0 16px 48px rgba(11, 29, 53, 0.14), 0 6px 18px rgba(11, 29, 53, 0.08);
  --r: 14px;
  --font: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.app-shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* ── 全体レイアウト ── */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── 左パネル（ブランドビジュアル） ── */
.left-panel {
  width: 46%;
  flex-shrink: 0;
  background: linear-gradient(150deg, #0b1d35 0%, #0d3a6e 55%, #0a5c4a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

/* 背景装飾 */
.left-panel::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 199, 85, 0.18) 0%, transparent 65%);
  top: -80px;
  right: -120px;
  pointer-events: none;
}
.left-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 111, 217, 0.2) 0%, transparent 65%);
  bottom: -60px;
  left: -80px;
  pointer-events: none;
}

/* グリッド装飾 */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.lp-top {
  position: relative;
  z-index: 1;
}
.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
}
.lp-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.4);
  flex-shrink: 0;
}
.lp-logo-mark svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.lp-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.lp-logo-tag {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.lp-headline {
  font-size: 36px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.lp-headline span {
  background: linear-gradient(90deg, var(--brand) 0%, #4adeab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 340px;
  font-weight: 400;
}

/* フィーチャーリスト */
.features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.feat-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.feat-text strong {
  color: white;
}

/* 下部テキスト */
.lp-bottom {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── 右パネル（ログインフォーム） ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--white);
  overflow-y: auto;
}
.right-panel::-webkit-scrollbar {
  display: none;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

/* ヘッダー */
.form-header {
  margin-bottom: 32px;
}
.form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 13px;
  color: var(--sub);
  font-weight: 400;
  line-height: 1.5;
}

/* ソーシャルログイン */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.social-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.social-btn > * {
  position: relative;
  z-index: 1;
}
.social-btn-main {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}
.social-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.18s;
}
.social-btn:hover::after {
  background: rgba(0, 0, 0, 0.03);
}
.social-btn:active {
  transform: scale(0.99);
}

.social-btn.line {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
}
.social-btn.line:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 6px 22px rgba(6, 199, 85, 0.4);
  transform: translateY(-1px);
}

.social-btn.google {
  box-shadow: var(--shadow-sm);
}
.social-btn.google:hover {
  border-color: #bfcfde;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.social-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* バッジ */
.btn-badge {
  grid-column: 3;
  justify-self: end;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
}
.btn-badge-g {
  grid-column: 3;
  justify-self: end;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
}

/* 区切り線 */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: #a0b4c5;
  font-weight: 500;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* フォーム要素 */
.field {
  margin-bottom: 14px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field-wrap {
  position: relative;
}
.field-input {
  width: 100%;
  height: 48px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: #fafcfe;
  padding: 0 44px 0 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: all 0.18s;
  -webkit-appearance: none;
}
.field-input::placeholder {
  color: #a0b4c5;
}
.field-input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.1);
}
.field-input.error {
  border-color: var(--danger);
  background: #fff5f5;
}
.field-input.error:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0b4c5;
  font-size: 16px;
  pointer-events: none;
}
.field-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0b4c5;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-toggle:hover {
  color: var(--sub);
}

/* パスワード行 */
.pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.forgot {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.forgot:hover {
  text-decoration: underline;
}

/* エラーメッセージ */
.field-error {
  font-size: 11px;
  color: var(--danger);
  font-weight: 500;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}
.field-error.show {
  display: flex;
}

/* ログインボタン */
.submit-btn {
  width: 100%;
  height: 50px;
  border-radius: var(--r);
  border: none;
  background: linear-gradient(135deg, #1e6fd9 0%, #0b4db5 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(30, 111, 217, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.4s;
}
.submit-btn:hover::before {
  left: 100%;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(30, 111, 217, 0.45);
}
.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 111, 217, 0.3);
}
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* スピナー */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.loading .spinner {
  display: block;
}
.submit-btn.loading .btn-text {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 認証方式案内 */
.auth-info {
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ebf3ff, #e8faf0);
  border: 1px solid rgba(30, 111, 217, 0.15);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-info-emoji {
  font-size: 18px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.auth-info-txt {
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
}
.auth-info-txt strong {
  color: var(--blue);
  font-weight: 700;
}

/* 登録リンク */
.register-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  margin-top: 24px;
}
.register-link button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(30, 111, 217, 0.22);
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.register-link button:hover {
  border-color: rgba(30, 111, 217, 0.45);
  background: #dceaff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 111, 217, 0.14);
}
.register-link button:active {
  transform: translateY(0);
}

/* 利用規約 */
.terms {
  font-size: 11px;
  color: #a0b4c5;
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}
.terms a {
  color: #7a95aa;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 99px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(11, 29, 53, 0.25);
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── モバイル対応 ── */
@media (max-width: 768px) {
  .left-panel {
    display: none;
  }
  .right-panel {
    background: var(--bg);
    padding: 24px 20px;
  }
  .form-container {
    max-width: 100%;
  }
  .social-btn {
    padding-inline: 12px;
  }
  .btn-badge,
  .btn-badge-g {
    padding-inline: 6px;
  }
}

/* ── フォーカスリング ── */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
