@charset "utf-8";


/* ===== ベースレイアウト ===== */
.resetPassword-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    background-color: var(--main-bg);
}

.resetPassword-title {
    height: 110px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--main-text-color);
}
.resetPassword-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 300;
    letter-spacing: 5px;
}
.resetPassword-title p {
    font-size: 14px;
    margin-top: 15px;
}

/* ===== フォーム全体 ===== */
.resetPassword-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    padding: 30px 20px;
}

.resetPassword-form p {
    font-weight: bold;
    color: rgb(0, 149, 255);
    text-align: center;
}

/* ===== 入力ボックス ===== */
.resetPassword-input-box {
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    width: 90%;
    background: rgb(255, 235, 248);
    box-shadow: 0px 2px 42px -10px rgba(175, 175, 175, 0.8);
    padding: 40px 20px;
    margin: 20px 0;
}

.resetPassword-input-label {
    font-size: 15px;
    font-weight: bold;
    margin-left: 10px;
}
.resetPassword-input-label::after {
    content: '必須';
    font-size: 13px;
    font-weight: bold;
    color: #f44122;
    margin-left: 10px;
}

#email {
    width: 95%;
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-left: 10px;
}
#email:focus {
    border-color: hsl(202, 62%, 71%);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* ===== ボタンボックス部分 ===== */
.resetPassword-button-box {
    width: 65%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}




/* ===== 処理中スピナー（画面中央＋半透明背景） ===== */
.resetPasswordPopup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1500;
}
.resetPasswordPopup.show {
    opacity: 1;
    pointer-events: all;
    animation: fadeIn 0.4s ease;
}
.resetPasswordPopup .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
.resetPasswordPopup p {
    text-align: center;
    font-size: 16px;
    color: #333;
}

/* ===== 汎用ポップアップ（エラー） ===== */
.popup {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2000;

}
.popup.show {
  opacity: 1;
  pointer-events: all;
}

.popup-card {
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 560px;
  gap:30px;
  display: flex;
}
.popup-card.error {
  background: #ffe6ea;
  border: 5px solid #f46076;
}
#errorMessage {
  color: #b00020;
  font-weight: bold;
  font-size: 15px;
  padding: 20px;
}

/* ===== OKボタン ===== */
.ok-button {
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ok-button.error-btn {
  background: #ffb6c1;
}
.ok-button.error-btn:hover {
  background: #ff94a1;
  transform: scale(1.05);
}
.ok-button.success-btn {
  background: #8ed081;
}
.ok-button.success-btn:hover {
  background: #7cc674;
  transform: scale(1.05);
}

/* ===== アニメーション ===== */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes softFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 800px) {
  .resetPassword-main {
    padding-top: 55px;
  }
  .resetPassword-form {
    width: 95%;
    padding: 10px 10px;
  }
  .resetPassword-input-box {
    width: 95%;
    padding: 25px 15px;
  }
  #email {
    width: 100%;
    margin-left: 0;
  }
  .resetPassword-button-box {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}
