/* ============================================================
   登录页
   ============================================================ */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px) clamp(20px, 5vw, 60px);
}

/* 左侧品牌区 */
.intro {
  animation: intro-in 0.9s var(--ease) both;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateX(-26px); }
}

.intro__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  font-weight: 700;
}

.intro__title {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 720;
}

.intro__title em {
  font-style: normal;
  background: linear-gradient(100deg, #b9aeff, #6fe7f5 55%, #ff9fc1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro__text {
  max-width: 470px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 16px;
}

.feature-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
  opacity: 0;
  transform: translateX(-14px);
  animation: feat-in 0.7s var(--ease) both;
}

.feature-list li:nth-child(1) { animation-delay: 0.35s; }
.feature-list li:nth-child(2) { animation-delay: 0.48s; }
.feature-list li:nth-child(3) { animation-delay: 0.61s; }
.feature-list li:nth-child(4) { animation-delay: 0.74s; }

@keyframes feat-in {
  to { opacity: 1; transform: none; }
}

.feature-list__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-list__ico svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-2);
  stroke-width: 1.9;
  fill: none;
}

/* 右侧登录卡片 */
.auth {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  padding: clamp(26px, 3.4vw, 40px);
  animation: auth-in 0.9s 0.14s var(--ease) both;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
}

.auth__head {
  margin-bottom: 26px;
}

.auth__head h2 {
  font-size: 25px;
}

.auth__head p {
  margin: 7px 0 0;
  color: var(--text-faint);
  font-size: 14px;
}

.auth__form {
  position: relative;
}

.auth__form.shake {
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.auth__error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 93, 108, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 93, 108, 0.12);
  color: #ffc0c7;
  font-size: 13.5px;
  animation: fade-in 0.3s ease both;
}

.auth__error[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
    padding-top: 44px;
    padding-bottom: 60px;
    text-align: center;
    gap: 36px;
  }
  .intro__text { margin-left: auto; margin-right: auto; }
  .feature-list { max-width: 380px; margin-left: auto; margin-right: auto; text-align: left; }
  .intro__brand { justify-content: center; }
  .auth { max-width: 440px; }
}
