@charset "utf-8";

.resetPasswordComp-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--main-bg);
  padding: 40px 20px;
}

.resetPasswordComp-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--main-text-color);
  text-align: center;
  margin-bottom: 30px;
}

.resetPasswordComp-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.resetPasswordComp-text {
  font-size: 16px;
  color: var(--main-text-color);
}

.resetPasswordComp-text-p {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
}

/* ボタン */
.resetPasswordComp-submit-button {
  background-color: var(--button-bg);
  color: var(--button-text);
  display: inline-block;
  min-width: 200px;
  line-height: 48px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.resetPasswordComp-submit-button:hover {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
  text-decoration: none;
}

/* ポップアップ（共通スタイル流用） */
.resetPasswordPopup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff9c4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.resetPasswordPopup.hidden {
  display: none;
}
.resetPasswordPopup .spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}
.resetPasswordPopup .spinner-circle {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1.5s linear infinite;
}
.resetPasswordPopup p {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: black;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* レスポンシブ */
@media (max-width: 800px) {
  .resetPasswordComp-main {
    padding: 20px 10px;
  }

  .resetPasswordComp-title h2 {
    font-size: 22px;
  }

  .resetPasswordComp-text {
    font-size: 14px;
  }

  .resetPasswordComp-submit-button {
    min-width: 160px;
    font-size: 14px;
    line-height: 44px;
  }

  .resetPasswordPopup {
    width: 80%;
    height: auto;
    padding: 15px;
  }

  .resetPasswordPopup .spinner-circle {
    width: 30px;
    height: 30px;
  }
}
