/* ============================================================
   login.css · 登录页
   - 满屏奶油桃 + Rere 头像 + 邮箱密码表单
   ============================================================ */

#auth-page {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  opacity: 1;
  transition: opacity .4s var(--e-out);
}
#auth-page.gone {
  opacity: 0;
  pointer-events: none;
}
#auth-page::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  height: 60%;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, .65), transparent 70%);
  pointer-events: none;
}

.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 28px;
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.auth-hero {
  text-align: center;
  margin-bottom: 36px;
}
.auth-hero .av {
  width: 86px; height: 86px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 32px rgba(255, 107, 107, .35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  animation: hero-bounce .9s var(--e-spring);
}
.auth-hero .av img { width: 100%; height: 100%; object-fit: cover; }
.auth-hero .av .heart {
  color: #fff; font-size: 38px;
}
@keyframes hero-bounce {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.auth-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.02em;
}
.auth-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-hero .sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 500;
}

.auth-form {
  width: 100%;
  background: rgba(255, 255, 255, .75);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 12px 28px rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 255, 255, .8);
  position: relative;
}

.auth-tabs {
  display: flex;
  background: rgba(74, 43, 41, .06);
  padding: 3px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 999px;
  transition: all var(--dur-fast);
}
.auth-tab.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(74, 43, 41, .08);
}

.auth-row {
  margin-bottom: 12px;
}
.auth-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.auth-row input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 248, 242, .8);
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-dark);
  transition: all var(--dur-fast);
}
.auth-row input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .12);
}
.auth-row input::placeholder { color: var(--text-light); }

.auth-error {
  font-size: 12px;
  color: #E04444;
  background: rgba(235, 79, 79, .08);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
}
.auth-error.show { display: block; animation: shake .35s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth-success {
  font-size: 13px;
  color: #2A8;
  background: rgba(42, 170, 130, .1);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
  text-align: center;
}
.auth-success.show { display: block; }

.auth-submit {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  border: none;
  box-shadow: 0 8px 20px rgba(255, 107, 107, .35);
  transition: transform var(--dur-fast) var(--e-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.auth-submit:active { transform: scale(.97); }
.auth-submit[disabled] {
  opacity: .65;
  pointer-events: none;
}

.auth-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
}

.auth-foot {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 28px;
  line-height: 1.6;
}
.auth-foot a { color: var(--primary); }

.auth-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
