body {
    background: #f5f5f5;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.ghostgate-login-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    text-align: center;
}
.ghostgate-login-container input {
    font-size: 24px;
    padding: 10px;
    width: 200px;
    text-align: center;
}
.ghostgate-login-container button {
    font-size: 20px;
    padding: 10px 30px;
    margin-top: 20px;
    cursor: pointer;
}


/* ===== GhostGate: Brand header ===== */
.ghostgate-auth-code-page .ghostgate-login-container {
  max-width: 420px; /* 既存の器に合わせて必要なら調整 */
  margin: 40px auto;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.ghostgate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ghostgate-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex: 0 0 56px;
}

.ghostgate-brand__text {
  line-height: 1.2;
}

.ghostgate-brand__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.ghostgate-brand__subtitle {
  font-size: 12px;
  color: #6b7280; /* muted */
  margin-top: 2px;
}

/* 見出しと間隔の微調整 */
.ghostgate-form-title {
  margin: 12px 0 10px;
  font-size: 16px;
  color: #111827;
}

/* 入力とボタンの軽い体裁（既存があれば不要） */
.ghostgate-code-input {
  width: 100%;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
}
.ghostgate-code-input:focus {
  border-color: #06c755;
  box-shadow: 0 0 0 2px rgba(6,199,85,.15);
}

.ghostgate-submit-btn {
  display: inline-block;
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #06c755;
  background: #06c755;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.ghostgate-submit-btn:hover,
.ghostgate-submit-btn:focus {
  background: #05b64e;
  border-color: #049e43;
}

/* ===== ダークモード（ユーザーのOS設定に追従） ===== */
@media (prefers-color-scheme: dark) {
  .ghostgate-auth-code-page .ghostgate-login-container {
    background: #1f2937; /* slate-800 */
    box-shadow: none;
  }
  .ghostgate-brand__title,
  .ghostgate-form-title {
    color: #f9fafb; /* gray-50 */
  }
  .ghostgate-brand__subtitle {
    color: #9ca3af; /* gray-400 */
  }
  .ghostgate-code-input {
    background: #111827; /* slate-900 */
    color: #f9fafb;
    border-color: #374151; /* slate-700 */
  }
  .ghostgate-code-input::placeholder {
    color: #9ca3af;
  }
  .ghostgate-submit-btn {
    /* ライト時と同じ配色だが、暗背景でもコントラスト十分 */
    border-color: #06c755;
    background: #06c755;
    color: #fff;
  }
  .ghostgate-submit-btn:hover,
  .ghostgate-submit-btn:focus {
    background: #05b64e;
    border-color: #049e43;
  }
}

/* ===== 小さめ画面での余白最適化（任意） ===== */
@media (max-width: 420px) {
  .ghostgate-auth-code-page .ghostgate-login-container {
    margin: 24px 12px;
    padding: 20px 16px;
  }
  .ghostgate-brand__logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}
