/* 中央認証画面（疑似 Hosted UI）のヤマトク風スタイル
   ニュートラルなグレー基調 + 山徳イメージカラー（黄緑）をボタン・リンク等の要所のみに使用。
   ブランド色の調整は :root の --yg-* を差し替えるだけでよい */

:root {
  --yg-100: #f0f7e4;
  --yg-500: #8cc63f;   /* ブランド黄緑 */
  --yg-600: #76ad2e;
  --yg-700: #5d8c21;
  --yg-800: #497019;
  --ink: #2b2b2b;
  --sub: #666;
  --muted: #999;
  --line-c: #dddddd;
  --bg: #f5f5f3;
}

.hosted-ui-body {
  background: var(--bg);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.hosted-ui-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 16px;
  box-sizing: border-box;
}

.hosted-ui-card {
  background: white;
  padding: 36px 32px 28px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.hosted-ui-logo {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  color: var(--yg-600);
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.hosted-ui-heading {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--sub);
}

.hosted-ui-desc {
  font-size: 13.5px;
  color: var(--sub);
  margin: 0 0 16px;
  line-height: 1.7;
  text-align: center;
}

.hosted-ui-error {
  background: #fdf1f0;
  border: 1px solid #f0d4d1;
  color: #b3382c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hosted-ui-success {
  background: var(--yg-100);
  border: 1px solid #d9e9be;
  color: #47701a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* フローティングラベル入力 */
.field { position: relative; margin-bottom: 14px; }
.field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 21px 14px 7px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--yg-600);
  box-shadow: 0 0 0 2px rgba(140, 198, 63, .25);
}
.field-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px white inset; }
.field-label {
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 14.5px;
  color: var(--muted);
  pointer-events: none;
  transition: all .15s ease;
}
.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label,
.field-input:-webkit-autofill + .field-label {
  top: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #777;
}
.field-input:focus + .field-label { color: var(--yg-700); }
.field-input--code {
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
}
.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: -6px 2px 14px;
}

.hosted-ui-submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  margin-top: 4px;
  background: var(--yg-600);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: background .1s ease;
}
.hosted-ui-submit:hover { background: var(--yg-700); }

.hosted-ui-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.hosted-ui-links a {
  color: var(--yg-800);
  font-weight: 500;
  text-decoration: none;
}
.hosted-ui-links a:hover { text-decoration: underline; }
.hosted-ui-links a:only-child { margin-inline: auto; }

/* ログイン失敗の文言に続ける、パスワードを設定する画面への案内 */
.hosted-ui-guide {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sub);
  text-align: center;
}
.hosted-ui-guide p { margin: 0 0 8px; }
.hosted-ui-guide a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--yg-600);
  border-radius: 8px;
  color: var(--yg-800);
  font-weight: 700;
  text-decoration: none;
}
.hosted-ui-guide a:hover { background: var(--yg-100); }
.hosted-ui-guide a:focus-visible {
  outline: 2px solid var(--yg-600);
  outline-offset: 2px;
}

/* リンク風のフォーム送信ボタン（確認コードの再送導線） */
.hosted-ui-link-button {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  padding: 0;
  color: var(--yg-800);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.hosted-ui-link-button:hover { text-decoration: underline; }
.hosted-ui-link-button:focus-visible {
  outline: 2px solid var(--yg-600);
  outline-offset: 2px;
}

.hosted-ui-footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.hosted-ui-footer a { color: var(--yg-800); text-decoration: none; }

/* ネイティブ入力とソーシャル導線の区切り */
.hosted-ui-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.hosted-ui-divider::before,
.hosted-ui-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-c);
}

/* ソーシャル導線。ネイティブの送信ボタンと同じ高さ・角丸で並べる */
.hosted-ui-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s ease, background-color .15s ease;
}
.hosted-ui-social:hover { filter: brightness(.97); }

/* LINE はブランド色（白抜き）。他 IdP は既定の枠線ボタンのまま */
.hosted-ui-social-line {
  border-color: #06c755;
  background: #06c755;
  color: #fff;
}

.hosted-ui-submit:focus-visible,
.hosted-ui-social:focus-visible,
.hosted-ui-links a:focus-visible {
  outline: 2px solid var(--yg-600);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .hosted-ui-card { padding: 28px 22px 24px; }
}

/* dev panel は site.css のものを上書きしない */
