@charset "utf-8";


.newPassword-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);
}
.newPassword-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 210px;
  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);
  text-shadow: 1px 1px 10px #4b2c14;
}
.newPassword-title h1 {
    font-family: 'Montserrant',sans-serif;
    font-size: 32px;
    font-weight: bold;
}
.newPassword-title p {
    font-size: 14px;
    margin-top: 15px;
}





.resetPasswordPopup {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color:yellow;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.resetPasswordPopup.hidden {
    display: none;
}
.resetPasswordPopup spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.resetPasswordPopup .spinner-circle {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}
.resetPasswordPopup p {
  text-align: center;
  margin-top: 50px;
  font-size: 20px;
  padding: auto;
  color: black;
}

.newPassword-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}
.newPassword-input-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 60%;
    max-width: 600px;
    background-color: #fbd8ef;
    border-radius: 10px;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    gap:0px;
}
.newPassword-input-label {
    align-items: flex-start;
    margin-left: 10px;
    width: 100%;
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
}
.newPassword-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: black;
    background-color: white;
}
.newPassword-input:focus {
    border-color: var(--focus-border-color);
    outline: none;
}
.email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: black;
    background-color: var(--input-bg-color);
    margin-bottom: 20px;
}
.newPassword-submit-button-box {
  width:100%;
  display: flex;                 /* 横並び */
  justify-content: center;       /* 中央寄せ */
  gap: 1rem;                     /* ボタン間の余白 */
  margin-top: 2rem;              /* フォームとの余白 */
  margin-bottom: 2rem;           /* 下部の余白 */
}
.newPassword-submit-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    display: inline-block;
    min-width: 180px;
    line-height: 48px;
    border-radius: 24px;
    font-family: 'Montserrat',sans-serif;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
    max-width: 200px;
}
.newPassword-submit-button:hover {
    background-color:var(--button-hover-bg);
    color: var(--button-hover-text);
    text-decoration: none;
}
.newPassword-submit-button:disabled {
    background-color: var(--button-disabled-bg-color);
    cursor: not-allowed;
}
/* ===== 汎用ポップアップ（エラー） ===== */
.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) {


}

