/* 首页与登录共用布局 */
.home-shell {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.home-auth-layout {
  width: min(560px, 100%);
  margin: 0 auto;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 32px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(18, 20, 29, 0.1);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 24%, var(--navy-3) 24% 62%, var(--navy) 62% 100%);
}

.auth-heading {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
}

.auth-card h2 {
  margin: 6px 0 10px;
  font-size: 1.7rem;
  font-weight: 900;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #333a45;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #2a2f38;
  font-size: 16px;
}

.auth-form input:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(34, 62, 108, 0.14);
}

.auth-form .btn,
.auth-switch {
  min-height: 50px;
  font-size: 16px;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.forgot-link {
  display: block;
  margin-top: 6px;
  color: var(--navy-3);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.forgot-link:hover {
  color: var(--red-deep);
}

.auth-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.tech-footer {
  margin-top: 44px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .home-shell {
    padding: 28px 0 44px;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .auth-card h2 {
    font-size: 1.4rem;
  }

  .code-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
