/* lost-password.css & reset-password.css — パスワード再設定 */

/* ===== 共通レイアウト ===== */
.lostpw-page,
.resetpw-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lostpw-page > .back-btn,
.resetpw-page > .back-btn {
  align-self: flex-start;
  margin-bottom: 0;
}

.lostpw-page__title,
.resetpw-page__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #111;
}

/* ===== カード ===== */
.lostpw-card,
.resetpw-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lostpw-card__desc,
.resetpw-card__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ===== フォーム ===== */
.lostpw-form,
.resetpw-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lostpw-form__field,
.resetpw-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lostpw-form__label,
.resetpw-form__label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.lostpw-form__input,
.resetpw-form__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}

.lostpw-form__input::placeholder,
.resetpw-form__input::placeholder {
  color: #bbb;
}

.lostpw-form__input:focus,
.resetpw-form__input:focus {
  outline: none;
  border-color: #00a63e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.12);
}

/* パスワード欄（目アイコン付き） */
.resetpw-form__password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.resetpw-form__password-wrap .resetpw-form__input {
  padding-right: 44px;
}

.resetpw-form__eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.resetpw-form__eye:hover {
  color: #555;
}

/* 送信ボタン */
.lostpw-form__submit,
.resetpw-form__submit {
  width: 100%;
  height: 50px;
  background: #00a63e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.04em;
}

.lostpw-form__submit:hover,
.resetpw-form__submit:hover {
  background: #008236;
}

.lostpw-form__submit:active,
.resetpw-form__submit:active {
  transform: scale(0.98);
}

/* フッター */
.lostpw-card__footer {
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.lostpw-card__login-link {
  font-size: 14px;
  color: #00a63e;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}

.lostpw-card__login-link:hover {
  color: #008236;
}

/* ===== 送信完了・変更完了 ===== */
.lostpw-success,
.resetpw-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 8px 0;
}

.lostpw-success__title,
.resetpw-success__title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.lostpw-success__body,
.resetpw-success__body {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.lostpw-back-login,
.resetpw-to-mypage {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 28px;
  background: #00a63e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
}

.lostpw-back-login:hover,
.resetpw-to-mypage:hover {
  background: #008236;
}

/* .notice--error は components.css で定義済み */

@media (max-width: 540px) {
  .lostpw-card,
  .resetpw-card {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }
}
