@charset "utf-8";

/* page_nav.css */

/* スマホ表示でのみ改行 */
.page-title .line-break {
  display: inline;  /* PCは横並び */
}

@media (max-width: 767px) {
  .page-title .line-break {
    display: block; /* スマホは強制改行 */
  }
}

/* ===============================
   目アイコンボタン（パスワード表示切替）
================================= */
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 5;
}

/* input の右端にアイコン + エラー用スペースを確保 */
.form-control.pe-5 {
  padding-right: 3rem;
}

/* ===============================
   上部ナビ（システム名）
================================= */
.page-nav {
  margin-bottom: 20px;
}

.page-nav.register {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1.2rem 0 !important;
  text-align: center;
}

.page-nav.register h2.page-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #23ac66;
  margin: 0;
}

/* ===============================
   ページ個別タイトル
================================= */
.page-title-section {
  background: linear-gradient(90deg, #f8f9fa 0%, #d6d8d9 100%);
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1.2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.page-title-section .page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

/* ===============================
   成功アイコン
================================= */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 40px auto;
  border-radius: 50%;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #28a745;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===============================
   注意事項
================================= */
.page-alert-info {
  color: #102c35;
  border: 1px solid #548195;
  border-left: 4px solid #2a8ead;
  background-color: #f7f7f7;
  font-size: 0.95rem;
  padding: 1.8rem 1rem;
  border-radius: 6px;
  line-height: 1.5;
  margin-top: 1rem !important;
}

/* ===============================
   エラー表示
================================= */
.page-alert-error {
  background-color: #fff0f0;
  border-left: 4px solid #dc3545;
  color: #dc3545;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ===============================
   外枠カード
================================= */
.main-card {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #dfe3e6;
  padding: 1rem;
}

/* ===============================
   フォームラベル
================================= */
.form-label.fw-semibold,
.col-form-label.fw-semibold {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

/* ===============================
   入力フォーム
================================= */
.form-control,
.form-select {
  height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
}

.form-select {
  line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.15rem rgba(40,167,69,0.2);
}

/* ===============================
   認証コード入力
================================= */
.code-input {
  width: 3rem;
  height: 3.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: all 0.25s ease;
  padding: 0;
  line-height: 3.5rem;
  box-sizing: border-box;
  background-color: #fff !important;
  color: #000 !important;
}

.code-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.15rem rgba(40,167,69,0.2);
}

.code-input.is-valid,
.code-input.is-invalid,
.was-validated .code-input:valid,
.was-validated .code-input:invalid,
.code-input.form-control:focus.is-valid,
.code-input.form-control:focus.is-invalid,
.was-validated .code-input:valid:focus,
.was-validated .code-input:invalid:focus {
  background-image: none !important;
  padding-right: 0 !important;
  background-color: #fff !important;
  color: #000 !important;
}

.code-input.glow {
  border-color: #28a745 !important;
  box-shadow: 0 0 8px rgba(40,167,69,0.6);
}

/* ===============================
   縦余白
================================= */
.form-group,
.mb-3,
.mb-4 {
  margin-bottom: 1.2rem;
}

/* ===============================
   送信ボタン
================================= */
.page-btn-submit {
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.85rem 1.2rem;
  margin: 24px 0;
  border-radius: 8px;
  transition: all 0.25s ease-in-out;
  background-color: #47884a;
  border: 2px solid #327c35;
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.page-btn-submit:hover,
.page-btn-submit:focus {
  background-color: #23ac66;
  border-color: #23ac66;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.page-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* ===============================
   スマホ対応
================================= */
@media (max-width:576px) {

  .page-btn-submit {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .page-title-section .page-title {
    font-size: 1.4rem;
  }

  .page-title-section,
  .page-alert-info,
  .page-alert-error {
    margin-left: -12px;
    margin-right: -12px;
  }

  .form-control,
  .form-select {
    font-size: 16px;
  }

  .row.g-2 > .col {
    flex: 1 1 33%;
  }

  .col-md-6 {
    flex: 1 1 100%;
  }

  .password-toggle-btn {
    font-size: 1rem;
    right: 0.5rem;
  }

  .form-control.pe-5 {
    padding-right: 2.5rem;
  }

  .code-input {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.3rem;
    line-height: 3rem;
  }

  /* 成功アイコン（スマホ） */
  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 30px;
  }
}