html,
body {
  overflow-x: hidden;
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fb 0%, #eef3f8 100%);
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel {
  width: min(100%, 430px);
  min-height: auto;
  padding: 34px 32px 30px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e3eaf2;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  display: block;
}

.auth-logo {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo__name {
  color: #17324d;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.auth-logo__cn {
  margin-top: 8px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
}

.auth-logo__en {
  margin-top: 2px;
  color: #64748b;
  font-size: 13px;
}

.auth-type-switch {
  margin-top: 0;
  border-radius: 12px;
}

.auth-type-switch__item {
  min-height: 40px;
  border-radius: 8px;
  white-space: normal;
  text-align: center;
}

.auth-form {
  margin-top: 18px;
}

.auth-form .field {
  gap: 6px;
}

.auth-form .input {
  height: 46px;
  border-radius: 10px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
}

.auth-page .flash {
  margin-top: 16px;
  border-radius: 10px;
  line-height: 1.6;
}

.auth-page .flash--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.auth-mini-links {
  justify-content: center;
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-panel {
    padding: 28px 20px 24px;
  }
}
