/* ===== 認証ページ共有CSS (login / register / password-change) ===== */

/* ── ヘッダー ── */
.auth-header {
  padding: 24px 48px 0;
  background: #fff;
}

.auth-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #4a4a4a;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.auth-breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color .2s;
}

.auth-breadcrumb a:hover {
  color: #000;
}

.auth-breadcrumb svg {
  color: #4a4a4a;
  flex-shrink: 0;
}

/* ── メインコンテンツ ── */
.auth-main {
  padding: 40px 20px 80px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-title {
  font-size: 32px;
  font-weight: 500;
  color: #1e1e1e;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: .02em;
}

.auth-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #1e1e1e;
  text-align: center;
  margin: 0 0 28px;
}

/* ── フォームボックス ── */
.auth-form-box {
  width: 100%;
  max-width: 568px;
  background: rgba(126, 126, 126, 0.08);
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 32px;
}

/* ── フィールド行 ── */
.auth-field {
  margin-bottom: 20px;
}

.auth-field:last-child {
  margin-bottom: 0;
}

.auth-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #3c3c3c;
  margin-bottom: 6px;
}

.auth-required {
  color: #b80000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ── 入力フィールド ── */
.auth-input-wrap {
  position: relative;
}

.auth-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: #1e1e1e;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #878787;
}

.auth-input:focus {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
  background: #fdfdfd;
}

.auth-input.has-icon {
  padding-right: 44px;
}

/* パスワード表示トグル */
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #888;
  display: flex;
  align-items: center;
  transition: color .2s;
}

.pw-toggle:hover {
  color: #333;
}

.pw-toggle svg {
  display: block;
}

/* ── 認証コード + ボタン入力行 ── */
.auth-code-wrap {
  display: flex;
  gap: 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.auth-code-input {
  flex: 1;
width:calc(100% - 100px);
  height: 42px;
  padding: 0 12px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #1e1e1e;
  background: transparent;
  transition: background .2s;
}

.auth-code-input:focus {
  background: #fdfdfd;
}

.auth-code-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  transition: opacity .2s;
  white-space: nowrap;
}

.auth-code-btn:hover {
  opacity: .8;
}

.auth-code-btn.disabled {
  background: #b8b8b8;
  color: #fff;
  cursor: not-allowed;
  border: 1px solid #b8b8b8;
  border-left: none;
  border-radius: 8px;
}

/* ── 送信ボタン ── */
.auth-submit-wrap {
  display: flex;
  justify-content: center;
}

.auth-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 40px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .1em;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.auth-submit-btn:hover {
  opacity: .85;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.auth-submit-btn:active {
  transform: scale(.97);
}

/* ── サブリンクエリア ── */
.auth-sub-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.auth-link-text {
  font-size: 12px;
  color: #000;
  text-align: center;
}

.auth-link-text a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s;
}

.auth-link-text a:hover {
  opacity: .6;
}

/* 新規会員登録ボタン（ログインページ） */
.auth-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 40px;
  background: #fff;
  color: #000;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s;
}

.auth-register-btn:hover {
  background: #f0f0f0;
}

/* ── エラーメッセージ ── */
.auth-field-error {
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
  display: none;
}

.auth-field-error.visible {
  display: block;
}

.auth-input.error {
  border-color: #c00;
}

/* ── 告知モーダル（Figma 1:3302 / 1:3292） ── */
.auth-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.auth-notice-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.auth-notice-open {
  overflow: hidden;
}

.auth-notice-modal {
  width: 100%;
  max-width: min(690px, calc(100vw - 32px));
  min-height: 186px;
  background: #fff;
  border: 1px solid #f5f7fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.auth-notice-modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  background: #000;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
}

.auth-notice-modal-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.auth-notice-modal-body {
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 32px;
  box-sizing: border-box;
}

.auth-notice-modal-body p {
  margin: 0;
}

.auth-notice-modal-body p + p {
  margin-top: 0;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .auth-header {
    padding: 16px 20px 0;
  }

  .auth-form-box {
    padding: 20px 20px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-submit-btn,
  .auth-register-btn {
    width: 100%;
    max-width: 320px;
  }

  .auth-notice-modal-heading {
    font-size: 18px;
  }

  .auth-notice-modal-body {
    padding: 22px 18px 28px;
    font-size: 14px;
    line-height: 1.65;
  }
}
