/* forgot.css - 找回密码（方式选择 + 手风琴 + 成功弹窗） */

/* ============================== */
/* === 找回密码 - 方式选择页 === */
/* ============================== */
.forgot-page {
  background: #ffffff;
  padding: 0;
  display: flex; flex-direction: column;
}
.forgot-page .bg-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.12), transparent 70%);
  top: -80px; right: -100px;
  animation: orbFloat1 9s ease-in-out infinite;
}
.forgot-page .bg-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(175, 82, 222, 0.08), transparent 70%);
  bottom: 120px; left: -80px;
  animation: orbFloat2 11s ease-in-out infinite;
}
.forgot-page.active .bg-orb { opacity: 1; }

.forgot-page .back-btn { top: 54px; }
.forgot-video-wrap {
  display: flex; justify-content: center;
  margin-top: 56px; margin-bottom: 24px;
  opacity: 0; transform: scale(0.8);
  animation: lottieIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
  position: relative; z-index: 2;
}
.forgot-video {
  width: 100%; max-width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.forgot-title {
  text-align: center;
  font-size: 22px; font-weight: 700;
  color: #1c1c1e; letter-spacing: -0.5px;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(15px);
  animation: fadeUp 0.5s ease 0.3s forwards;
  position: relative; z-index: 2;
}

.method-cards { position: relative; z-index: 2; }
.method-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; margin-bottom: 16px;
  background: #fafafa; border-radius: 16px;
  border: 1px solid #ebebf0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.3s, border-width 0.3s, margin 0.3s;
}
.method-card:active { transform: scale(0.97); }
.method-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.method-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.method-icon.sms { background: rgba(0, 122, 255, 0.12); }
.method-icon.sms img { width: 38px; height: 26px; object-fit: contain; }
.method-icon.invite { background: rgba(175, 82, 222, 0.12); }
.method-icon.invite img { width: 40px; height: 40px; object-fit: contain; }

.method-info { flex: 1; }
.method-title { font-size: 17px; font-weight: 600; color: #1c1c1e; margin-bottom: 4px; }
.method-desc { font-size: 13px; color: #86868b; }
.method-arrow { width: 16px; height: 16px; fill: none; stroke: #c7c7cc; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ====== 找回密码 - 顶部导航 ====== */
.forgot-headnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 0;
  margin-top: 46px;
  position: relative; z-index: 5;
}
.forgot-headnav-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.forgot-headnav-back:active { background: rgba(0,0,0,0.05); }
.forgot-headnav-back svg { width: 22px; height: 22px; fill: none; stroke: #1c1c1e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.forgot-headnav-title { font-size: 17px; font-weight: 600; color: #1c1c1e; }

/* ====== 找回密码 - 内容区 ====== */
.forgot-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 32px;
  position: relative; z-index: 2;
}

/* 卡片展开状态 */
.method-card.expanded { box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1); border-color: rgba(0, 122, 255, 0.3); border-width: 2px; margin-bottom: 0; }
.method-card.invite.expanded { box-shadow: 0 4px 16px rgba(175, 82, 222, 0.1); border-color: rgba(175, 82, 222, 0.3); border-width: 2px; margin-bottom: 0; }

/* ====== 手风琴展开 ====== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s, margin 0.3s;
}
.accordion-content.expanded {
  max-height: 800px;
  opacity: 1;
  background: transparent;
  border-radius: 16px;
  border: none;
  margin-top: 12px;
  margin-bottom: 16px;
  box-shadow: none;
  padding: 8px 4px 4px;
}

/* 字段容器 */
.forgot-field { margin-bottom: 20px; }
.forgot-field:last-child { margin-bottom: 0; }

.forgot-field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: #6e6e73; margin-bottom: 8px;
  letter-spacing: 0.3px;
  padding-left: 2px;
}
.forgot-field input {
  width: 100%; height: 50px;
  border: none; outline: none;
  background: transparent;
  font-size: 17px; color: #1c1c1e;
  padding: 0 2px;
  border-bottom: 1.5px solid #e5e5ea;
  transition: border-color 0.2s;
  border-radius: 0;
  animation: none;
  opacity: 1;
  transform: none;
}
.forgot-field input:focus { border-bottom-color: #007aff; }
.forgot-field input::placeholder { color: #c7c7cc; }

.forgot-field-input-wrap {
  display: flex; align-items: center;
  border-bottom: 1.5px solid #e5e5ea;
  transition: border-color 0.2s;
}
.forgot-field-input-wrap:focus-within { border-bottom-color: #007aff; }
.forgot-field-input-wrap input {
  flex: 1; border-bottom: none;
  height: 50px;
}

/* 验证码按钮 */
.forgot-code-btn {
  flex-shrink: 0;
  border: none; background: none;
  color: #007aff;
  font-size: 15px; font-weight: 600;
  padding: 0 4px; height: 50px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.forgot-code-btn:active { opacity: 0.6; }
.forgot-code-btn.disabled { color: #c7c7cc; pointer-events: none; }

/* 眼睛图标 */
.forgot-eye {
  flex-shrink: 0;
  width: 36px; height: 50px;
  cursor: pointer;
  position: relative;
}
.forgot-eye::before, .forgot-eye::after {
  content: '';
  position: absolute;
  background: #8e8e93;
}
.forgot-eye::before {
  left: 6px; top: 50%;
  width: 24px; height: 1.5px;
  transform: translateY(-50%);
  border-radius: 1px;
}
.forgot-eye::after {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 11px;
  border: 1.5px solid #8e8e93;
  border-radius: 50% / 50%;
  background: transparent;
}
.forgot-eye.show::after { display: none; }

/* 重置按钮 */
.btn-reset {
  width: 100%; height: 52px;
  border: none; border-radius: 14px;
  background: #007aff;
  color: #fff;
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-reset:active { transform: scale(0.98); opacity: 0.9; }
.btn-reset-invite { background: #af52de; }

/* ====== 成功弹窗卡片 ====== */
.success-overlay { position: absolute; inset: 0; z-index: 500; background: rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.success-overlay.show { opacity: 1; pointer-events: all; }
.success-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 56px; height: 56px;
  background: rgba(0, 122, 255, 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.success-icon svg { width: 32px; height: 32px; fill: #007aff; }
.success-text { font-size: 18px; font-weight: 600; color: #1c1c1e; margin-bottom: 4px; }
.success-subtext { font-size: 14px; color: #86868b; }
