/* ==============================
   device関連専用スタイル
   ============================== */
/* --- 認証フォーム共通 --- */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 69px - 110px - 40px - 41px);
}

.auth-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
}

.auth-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2e7d32;
  position: relative;
}

.auth-card h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #81c784, #66bb6a);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

/* カスタムチェックボックス */
.device-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: all 0.2s;
}

/* チェック時 */
.device-checkbox:checked {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* フォーカス時 */
.device-checkbox:focus {
  box-shadow: 0 0 0 2px #4caf50;
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.form-actions input[type="submit"] {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-actions input[type="submit"]:hover {
  background-color: #45a049;
}

.links {
  text-align: center;
  margin-top: 1rem;
}

.links a {
  color: #4CAF50;
  text-decoration: none;
  margin: 0 5px;
}

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

.header-container--guest {
  display: flex;
  justify-content: right;
}

.header-logo--guest {
  position: fixed;
  top: 6px;
  left: 12px;
  z-index: 16;
}

.header-logo--guest .logo-image,
.header-logo--guest .logo-image-dark {
  height: 60px;
}

/* ==============================
   Deviseリンク共通スタイル
   ============================== */
.auth-links {
  text-align: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-links a,
.auth-links button {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 通常リンク */
.auth-links a {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.auth-links a:hover {
  background-color: #c8e6c9;
  color: #1b5e20;
}

/* OmniAuth ボタン */
.auth-links button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
}

.auth-links button:hover {
  background-color: #45a049;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
  .auth-links a,
  .auth-links button {
    width: 90%;
  }
}

/* ==============================
   パスワードリセットフォーム共通スタイル
   ============================== */
.password-reset-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 69px - 110px - 40px - 41px);
}

.password-reset-container {
  max-width: 600px;
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.password-reset-container .form-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 1rem;
}

.password-reset-container .form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.password-reset-container .form-actions input[type="submit"] {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #4CAF50;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.password-reset-container .form-actions input[type="submit"]:hover {
  background-color: #45a049;
}

/* shared linksも統一 */
.password-reset-container .auth-links {
  margin-top: 1rem;
  text-align: center;
}

.password-reset-container .form-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 1rem;
  text-align: center;
}

/* トークン切れエラー用メッセージ */
.token-error-message {
  background-color: #fee2e2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}
