/*!
 * [二开] 登录 / 注册页版式层 (Auth Layout)
 * 依据参考站设计语言（品牌紫 #571dae、胶囊主按钮、描边次按钮、浅灰权益条）。
 * 仅在 #account-login / #account-register 下生效，不影响其他页面。
 */

/* ---------- 页面骨架 ---------- */
#account-login.rf-auth-page,
#account-register.rf-auth-page,
#account-forgotten.rf-auth-page,
#account-reset.rf-auth-page {
  max-width: 560px;
}
#account-register.rf-auth-page--wide {
  max-width: 720px;
}
.rf-auth-page { padding-bottom: 70px; }
.rf-auth-page > .breadcrumb { margin-bottom: 26px; }

/* ---------- 居中卡片 ---------- */
.rf-auth-card {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  padding: 38px 40px 34px;
  box-shadow: 0 1px 3px rgba(22, 22, 21, .04);
}
.rf-auth-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #161615;
  margin: 0 0 6px;
  text-align: center;
}
.rf-auth-sub {
  font-size: 13px;
  color: #615b67;
  text-align: center;
  margin: 0 0 26px;
}

/* ---------- 表单字段 ---------- */
.rf-auth-field { margin-bottom: 16px; }
.rf-auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #161615;
  margin-bottom: 6px;
}
.rf-auth-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.rf-auth-forgot {
  font-size: 12px;
  color: var(--lh-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rf-auth-forgot:hover { color: var(--lh-pink); }

.rf-input,
.rf-auth-page .form-control,
.rf-auth-page .form-select {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d9d4de;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #161615;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rf-auth-page textarea.rf-input { height: auto; padding: 10px 14px; }
.rf-input:focus,
.rf-auth-page .form-control:focus,
.rf-auth-page .form-select:focus {
  border-color: var(--lh-brand);
  box-shadow: 0 0 0 3px rgba(87, 29, 174, .1);
  outline: none;
}
.rf-input::placeholder { color: #a9a2b0; }

/* 密码可见性切换 */
.rf-auth-pw { position: relative; }
.rf-auth-pw .rf-input { padding-right: 46px; }
.rf-auth-eye {
  position: absolute; top: 0; right: 0;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  color: #8b8494; cursor: pointer; font-size: 15px;
}
.rf-auth-eye:hover { color: var(--lh-brand); }

/* ---------- 按钮 ---------- */
.rf-auth-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--lh-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.rf-auth-submit:hover { background: var(--lh-purple); color: #fff; }
.rf-auth-submit:active { transform: scale(.99); }

.rf-auth-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 1.5px solid #161615;
  border-radius: 999px;
  background: #fff;
  color: #161615;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}
.rf-auth-outline:hover {
  background: #161615;
  color: #fff;
  text-decoration: none;
}
.rf-auth-outline--sm { width: auto; height: 40px; margin-top: 0; padding: 0 20px; }

/* ---------- 分隔线 / 切换提示 ---------- */
.rf-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 12px;
  color: #a9a2b0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rf-auth-divider::before,
.rf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececef;
}
.rf-auth-switch {
  text-align: center;
  font-size: 13px;
  color: #615b67;
  margin: 0 0 4px;
}
.rf-auth-link {
  color: var(--lh-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rf-auth-link:hover { color: var(--lh-pink); }

.rf-auth-secure {
  margin: 20px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: #8b8494;
}
.rf-auth-secure i { color: #37b26c; margin-right: 5px; }

/* ---------- 会员权益条 ---------- */
.rf-auth-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.rf-auth-perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 14px;
  background: #f7f5f4;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #3d3844;
  text-align: center;
}
.rf-auth-perks li i {
  font-size: 17px;
  color: var(--lh-brand);
}
.rf-auth-perks--in {
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 26px;
}
.rf-auth-perks--in li { flex-direction: row; justify-content: flex-start; padding: 13px 16px; }
.rf-auth-perks--in li i { font-size: 15px; }

/* ---------- 注册页表单重排（纵排标签） ---------- */
#account-register .row.mb-3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}
#account-register .row.mb-3 > [class*="col-sm"] { width: 100%; flex: 0 0 100%; max-width: 100%; padding: 0; }
#account-register .row.mb-3 > label,
#account-register .row.mb-3 > .col-form-label {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: #161615;
  margin-bottom: 0;
  padding: 0;
}
#account-register fieldset {
  border: 0;
  border-top: 1px solid #ececef;
  padding: 22px 0 6px;
  margin: 0;
}
#account-register legend {
  float: left;
  width: 100%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #615b67;
  padding: 0;
  margin: 0 0 16px;
}
#account-register .form-check-label { font-size: 13px; color: #3d3844; }
#account-register .invalid-feedback { font-size: 12px; }

.rf-auth-agree {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 22px;
}
.rf-auth-agree .form-check { margin: 0; }
.rf-auth-agree .form-check-label { font-size: 12.5px; color: #615b67; }
.rf-auth-agree .form-check-input { float: right; }

/* ---------- 响应式 ---------- */
@media (max-width: 575px) {
  .rf-auth-card { padding: 26px 18px 24px; }
  .rf-auth-perks { grid-template-columns: repeat(2, 1fr); }
  .rf-auth-perks--in { grid-template-columns: 1fr; }
}
