/* 認証ページ共通のスタイル */
.auth_wrapper {
  padding: 3rem 0;
  background-color: #f9f9f9;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth_box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.auth_title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--main);
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form_group {
  margin-bottom: 1.5rem;
}

.form_group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.form_group input[type="email"],
.form_group input[type="password"],
.form_group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s;
}

/* ラジオボタンは別スタイル */
.form_group input[type="radio"] {
  width: auto;
  margin: 0;
  margin-right: 0.5rem;
}

.form_group input[type="email"]:focus,
.form_group input[type="password"]:focus,
.form_group input[type="text"]:focus {
  border-color: var(--main);
  outline: none;
}

.form_check {
  display: flex;
  align-items: center;
}

.form_check input {
  margin-right: 0.5rem;
}

.form_check label {
  margin-bottom: 0;
  font-weight: normal;
}

.form_actions {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.2s;
  width: 100%;
}

.btn_primary {
  color: #fff;
  background-color: var(--main);
  border-color: var(--main);
}

.btn_primary:hover {
  background-color: var(--main-dark);
  border-color: var(--main-dark);
}

.auth_links {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth_links a {
  color: var(--main);
  text-decoration: none;
}

.auth_links a:hover {
  text-decoration: underline;
}

/* 認証コード関連のスタイル */
.auth_info {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
}

.auth_info strong {
  color: #333;
  font-weight: bold;
}

.back_link {
  color: var(--main);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 1rem;
}

.back_link:hover {
  text-decoration: underline;
}

#auth_code {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}

/* 新規登録ページ用の追加スタイル */
.required {
  color: #dc3545;
  margin-left: 0.25rem;
  font-size: 0.9em;
}

.form_help {
  display: block;
  margin-top: 0.25rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* ラジオボタングループ */
.radio_group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.radio_label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio_label input[type="radio"] {
  margin-right: 0.5rem;
  width: auto;
  /* ラジオボタンを確実に表示 */
  appearance: auto;
  -webkit-appearance: radio;
  -moz-appearance: radio;
  opacity: 1;
  position: static;
  pointer-events: auto;
}

.radio_label span {
  color: #333;
}

/* 利用規約同意エリア */
.form_agreement {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.agreement_text {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.6;
}

.agreement_text a {
  color: var(--main);
  text-decoration: underline;
}

.agreement_text a:hover {
  color: var(--main-dark);
}

/* レスポンシブデザイン */
@media (max-width: 576px) {
  .auth_box {
    padding: 1.5rem;
  }
  
  .auth_title {
    font-size: 1.25rem;
  }
  
  .radio_group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* =================================================================
   登録完了画面のスタイル
   ================================================================= */

/* 登録完了ボックス */
.complete_box {
  max-width: 600px;
}

/* 完了アイコン */
.complete_icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ウェルカムメッセージ */
.welcome_message {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome_text {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.welcome_text strong {
  color: var(--main);
}

.sub_text {
  color: #6c757d;
  line-height: 1.6;
}

/* ユーザー情報ボックス */
.user_info_box {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info_title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.info_list {
  margin: 0;
}

.info_list dt {
  font-weight: bold;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.info_list dd {
  margin-bottom: 1rem;
  margin-left: 0;
  color: #333;
}

.info_list dd:last-child {
  margin-bottom: 0;
}

/* 次のアクション */
.next_actions {
  margin-bottom: 2rem;
}

.actions_title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

.action_cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.action_card {
  display: block;
  padding: 1.25rem;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.action_card:hover {
  border-color: var(--main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.card_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #f8f9fa;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  color: var(--main);
}

.action_card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.action_card p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* 注意書きボックス */
.note_box {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
}

.note_text {
  margin: 0;
  font-size: 0.875rem;
  color: #856404;
  line-height: 1.6;
}

/* 登録完了画面のレスポンシブ対応 */
@media (min-width: 576px) {
  .action_cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .complete_icon svg {
    width: 60px;
    height: 60px;
  }
  
  .welcome_text {
    font-size: 1.1rem;
  }
  
  .action_card {
    padding: 1rem;
  }
}