/* ===== 認証画面 V2スタイル（添付画像デザイン準拠） ===== */

/* 背景 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c8d9f5 0%, #d4e3f8 100%);
  padding: 20px;
}

/* カード */
.auth-card-v2 {
  background: #fefefe;
  border-radius: 30px;
  padding: 56px 48px 40px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
}

/* ヘッダー */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  background: #2f62ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-icon-circle i {
  font-size: 28px;
  color: white;
}

.auth-title-v2 {
  font-size: 38px;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
  text-align: center;
}

.auth-subtitle-v2 {
  font-size: 22px;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
  margin: 16px 0 32px;
}

/* Google Sign-In ボタン */
.btn-google-v2 {
  width: 100%;
  height: 76px;
  background: #fff;
  border: 2px solid #d4d8df;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  color: #374151;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 28px;
}

.btn-google-v2:hover {
  background: #f9fafb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.google-icon {
  width: 24px;
  height: 24px;
}

/* 区切り線 */
.auth-divider-v2 {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #6b7280;
  font-weight: 700;
  font-size: 18px;
  margin: 28px 0;
}

.auth-divider-v2::before,
.auth-divider-v2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e6eb;
}

/* フォームグループ */
.form-group-v2 {
  margin-bottom: 24px;
}

.form-group-v2 label {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

/* 入力フィールド */
.input-wrapper-v2 {
  position: relative;
}

.input-wrapper-v2 input {
  width: 100%;
  height: 94px;
  border: 1.5px solid #d8dde3;
  border-radius: 16px;
  background: #fff;
  padding: 0 72px 0 28px;
  font-size: 22px;
  color: #111827;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.input-wrapper-v2 input::placeholder {
  color: #c2c7cf;
}

.input-wrapper-v2 input:focus {
  outline: none;
  border-color: #2f62ea;
}

.input-icon-v2 {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #b5bbc5;
}

/* 送信ボタン */
.btn-submit-v2 {
  width: 100%;
  height: 94px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #2f62ea 0%, #4c52e8 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(53, 77, 219, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit-v2:hover {
  background: linear-gradient(90deg, #2852d0 0%, #4046d0 100%);
  box-shadow: 0 12px 26px rgba(53, 77, 219, 0.35);
  transform: translateY(-2px);
}

.btn-submit-v2:disabled {
  background: #cbd5e0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-v2 i {
  font-size: 26px;
}

/* 再送信ボタン */
.btn-resend-v2 {
  width: 100%;
  height: 76px;
  border: 2px solid #d8dde3;
  border-radius: 14px;
  background: #fff;
  color: #6b7280;
  font-size: 22px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-resend-v2:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #c2c7cf;
}

.btn-resend-v2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 戻るボタン */
.btn-back-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 22px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 32px;
  padding: 0;
  transition: color 0.3s ease;
}

.btn-back-v2:hover {
  color: #4b5563;
}

/* メッセージ */
.auth-message-v2 {
  padding: 20px;
  background: #f0f4f8;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 18px;
  color: #2d3748;
  line-height: 1.6;
}

.auth-message-v2 strong {
  color: #2f62ea;
  font-weight: 600;
}

/* 認証選択画面のアクション */
.auth-actions {
  margin: 32px 0;
}

.btn-register-v2,
.btn-login-v2,
.btn-guest-v2 {
  width: 100%;
  height: 76px;
  border: 2px solid #d8dde3;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 16px;
}

.btn-register-v2:hover,
.btn-login-v2:hover,
.btn-guest-v2:hover {
  background: #f9fafb;
  border-color: #c2c7cf;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-register-v2 i,
.btn-login-v2 i,
.btn-guest-v2 i {
  font-size: 22px;
  color: #2f62ea;
}

/* エラー・成功メッセージ */
.error-message-v2 {
  padding: 16px;
  background: #fee;
  border: 1.5px solid #f88;
  border-radius: 12px;
  color: #c00;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.success-message-v2 {
  padding: 16px;
  background: #efe;
  border: 1.5px solid #8d8;
  border-radius: 12px;
  color: #060;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .auth-card-v2 {
    padding: 40px 24px 32px;
    border-radius: 20px;
  }
  
  .auth-title-v2 {
    font-size: 30px;
  }
  
  .auth-subtitle-v2 {
    font-size: 18px;
  }
  
  .btn-google-v2,
  .btn-register-v2,
  .btn-login-v2,
  .btn-guest-v2,
  .btn-resend-v2 {
    height: 64px;
    font-size: 18px;
  }
  
  .btn-submit-v2 {
    height: 76px;
    font-size: 20px;
  }
  
  .input-wrapper-v2 input {
    height: 76px;
    font-size: 18px;
    padding: 0 60px 0 20px;
  }
  
  .form-group-v2 label {
    font-size: 20px;
  }
  
  .btn-back-v2 {
    font-size: 18px;
  }
}
